From 281abd2cdcea8d2d12b5b420a5ec7f4624a80021 Mon Sep 17 00:00:00 2001 From: Eliezer Steinbock <3090527+elie222@users.noreply.github.com> Date: Fri, 20 Dec 2024 11:17:34 +0200 Subject: [PATCH] fix run test comment --- apps/web/__tests__/ai-categorize-senders.test.ts | 2 +- apps/web/__tests__/ai-choose-args.test.ts | 2 +- apps/web/__tests__/ai-choose-rule.test.ts | 2 +- apps/web/__tests__/ai-create-group.test.ts | 2 +- apps/web/__tests__/ai-diff-rules.test.ts | 2 +- apps/web/__tests__/ai-example-matches.test.ts | 2 +- apps/web/__tests__/ai-find-snippets.test.ts | 2 +- apps/web/__tests__/ai-prompt-to-rules.test.ts | 2 +- apps/web/__tests__/ai-rule-fix.test.ts | 2 +- apps/web/utils/ai/choose-rule/ai-choose-args.test.ts | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/web/__tests__/ai-categorize-senders.test.ts b/apps/web/__tests__/ai-categorize-senders.test.ts index a68ddcbe..006998e5 100644 --- a/apps/web/__tests__/ai-categorize-senders.test.ts +++ b/apps/web/__tests__/ai-categorize-senders.test.ts @@ -6,7 +6,7 @@ import { import { defaultCategory } from "@/utils/categories"; import { aiCategorizeSender } from "@/utils/ai/categorize-sender/ai-categorize-single-sender"; -// pnpm test ai-categorize-senders +// pnpm test-ai ai-categorize-senders const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-choose-args.test.ts b/apps/web/__tests__/ai-choose-args.test.ts index 15d83579..8dbf16b7 100644 --- a/apps/web/__tests__/ai-choose-args.test.ts +++ b/apps/web/__tests__/ai-choose-args.test.ts @@ -3,7 +3,7 @@ import { getActionItemsWithAiArgs } from "@/utils/ai/choose-rule/ai-choose-args" import { type Action, ActionType, LogicalOperator } from "@prisma/client"; import type { RuleWithActions } from "@/utils/types"; -// pnpm test ai-choose-args +// pnpm test-ai ai-choose-args const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-choose-rule.test.ts b/apps/web/__tests__/ai-choose-rule.test.ts index 8d82a7c7..0b6515ce 100644 --- a/apps/web/__tests__/ai-choose-rule.test.ts +++ b/apps/web/__tests__/ai-choose-rule.test.ts @@ -2,7 +2,7 @@ import { describe, expect, test, vi } from "vitest"; import { aiChooseRule } from "@/utils/ai/choose-rule/ai-choose-rule"; import { type Action, ActionType, LogicalOperator } from "@prisma/client"; -// pnpm test ai-choose-rule +// pnpm test-ai ai-choose-rule const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-create-group.test.ts b/apps/web/__tests__/ai-create-group.test.ts index 1f9c75a2..1bf9d119 100644 --- a/apps/web/__tests__/ai-create-group.test.ts +++ b/apps/web/__tests__/ai-create-group.test.ts @@ -4,7 +4,7 @@ import { aiGenerateGroupItems } from "@/utils/ai/group/create-group"; import { queryBatchMessages } from "@/utils/gmail/message"; import type { ParsedMessage } from "@/utils/types"; -// pnpm test ai-create-group +// pnpm test-ai ai-create-group const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-diff-rules.test.ts b/apps/web/__tests__/ai-diff-rules.test.ts index 27a3bede..39c2bde6 100644 --- a/apps/web/__tests__/ai-diff-rules.test.ts +++ b/apps/web/__tests__/ai-diff-rules.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect, vi } from "vitest"; import { aiDiffRules } from "@/utils/ai/rule/diff-rules"; -// pnpm test ai-diff-rules +// pnpm test-ai ai-diff-rules const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-example-matches.test.ts b/apps/web/__tests__/ai-example-matches.test.ts index 3669542a..08457ea9 100644 --- a/apps/web/__tests__/ai-example-matches.test.ts +++ b/apps/web/__tests__/ai-example-matches.test.ts @@ -5,7 +5,7 @@ import { queryBatchMessages } from "@/utils/gmail/message"; import type { ParsedMessage } from "@/utils/types"; import { findExampleMatchesSchema } from "@/utils/ai/example-matches/find-example-matches"; -// pnpm test ai-find-example-matches +// pnpm test-ai ai-find-example-matches const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-find-snippets.test.ts b/apps/web/__tests__/ai-find-snippets.test.ts index 3fc5f010..5e99b342 100644 --- a/apps/web/__tests__/ai-find-snippets.test.ts +++ b/apps/web/__tests__/ai-find-snippets.test.ts @@ -2,7 +2,7 @@ import { describe, expect, test, vi } from "vitest"; import { aiFindSnippets } from "@/utils/ai/snippets/find-snippets"; import type { EmailForLLM } from "@/utils/ai/choose-rule/stringify-email"; -// pnpm test ai-find-snippets +// pnpm test-ai ai-find-snippets const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-prompt-to-rules.test.ts b/apps/web/__tests__/ai-prompt-to-rules.test.ts index deef7f75..53f73940 100644 --- a/apps/web/__tests__/ai-prompt-to-rules.test.ts +++ b/apps/web/__tests__/ai-prompt-to-rules.test.ts @@ -3,7 +3,7 @@ import { aiPromptToRules } from "@/utils/ai/rule/prompt-to-rules"; import { createRuleSchema } from "@/utils/ai/rule/create-rule-schema"; import { ActionType, RuleType } from "@prisma/client"; -// pnpm test ai-prompt-to-rules +// pnpm test-ai ai-prompt-to-rules const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/__tests__/ai-rule-fix.test.ts b/apps/web/__tests__/ai-rule-fix.test.ts index 8665acd7..fd0a241a 100644 --- a/apps/web/__tests__/ai-rule-fix.test.ts +++ b/apps/web/__tests__/ai-rule-fix.test.ts @@ -3,7 +3,7 @@ import stripIndent from "strip-indent"; import { aiRuleFix } from "@/utils/ai/rule/rule-fix"; import type { EmailForLLM } from "@/utils/ai/choose-rule/stringify-email"; -// pnpm test ai-rule-fix +// pnpm test-ai ai-rule-fix const isAiTest = process.env.RUN_AI_TESTS === "true"; diff --git a/apps/web/utils/ai/choose-rule/ai-choose-args.test.ts b/apps/web/utils/ai/choose-rule/ai-choose-args.test.ts index 8f384bb1..5ded723f 100644 --- a/apps/web/utils/ai/choose-rule/ai-choose-args.test.ts +++ b/apps/web/utils/ai/choose-rule/ai-choose-args.test.ts @@ -3,7 +3,7 @@ import { getParameterFieldsForAction, parseTemplate } from "./ai-choose-args"; import { z } from "zod"; // Run with: -// pnpm test ai-choose-args.test.ts +// pnpm test-ai ai-choose-args.test.ts vi.mock("server-only", () => ({}));