aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/turbo-ignore/__tests__/getTask.test.ts
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-03 21:25:40 +0800
committer简律纯 <i@jyunko.cn>2023-11-03 21:25:40 +0800
commit9029588590bea8b10451575c5142dcde77ecd1b5 (patch)
tree04cf8aee56c23fd225ff19d340f7cee621d874ef /packages/turbo-ignore/__tests__/getTask.test.ts
parent94071d7ce16c56641d67d488e2bac6be84ffe731 (diff)
downloadHydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.tar.gz
HydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.zip
chore: delete useless files
Diffstat (limited to 'packages/turbo-ignore/__tests__/getTask.test.ts')
-rw-r--r--packages/turbo-ignore/__tests__/getTask.test.ts27
1 files changed, 0 insertions, 27 deletions
diff --git a/packages/turbo-ignore/__tests__/getTask.test.ts b/packages/turbo-ignore/__tests__/getTask.test.ts
deleted file mode 100644
index a184893..0000000
--- a/packages/turbo-ignore/__tests__/getTask.test.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { getTask } from "../src/getTask";
-import { spyConsole, validateLogs } from "@turbo/test-utils";
-
-describe("getWorkspace()", () => {
- const mockConsole = spyConsole();
- it("getTask defaults to build", async () => {
- expect(getTask({})).toEqual("build");
- validateLogs(
- ['Using "build" as the task as it was unspecified'],
- mockConsole.log,
- { prefix: "≫ " }
- );
- });
-
- it("getTask returns a quoted task if user-supplied", async () => {
- expect(
- getTask({
- task: "workspace#task",
- })
- ).toEqual(`"workspace#task"`);
- validateLogs(
- ['Using "workspace#task" as the task from the arguments'],
- mockConsole.log,
- { prefix: "≫ " }
- );
- });
-});