Skip to content

Commit

Permalink
fix run test comment
Browse files Browse the repository at this point in the history
  • Loading branch information
elie222 committed Dec 20, 2024
1 parent 41e053a commit 281abd2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-categorize-senders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-choose-args.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-choose-rule.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-create-group.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-diff-rules.test.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-example-matches.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-find-snippets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-prompt-to-rules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-rule-fix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/utils/ai/choose-rule/ai-choose-args.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => ({}));

Expand Down

0 comments on commit 281abd2

Please sign in to comment.