aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/turbo-utils/__tests__/getTurboRoot.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/turbo-utils/__tests__/getTurboRoot.test.ts')
-rw-r--r--packages/turbo-utils/__tests__/getTurboRoot.test.ts33
1 files changed, 0 insertions, 33 deletions
diff --git a/packages/turbo-utils/__tests__/getTurboRoot.test.ts b/packages/turbo-utils/__tests__/getTurboRoot.test.ts
deleted file mode 100644
index acfb0ce..0000000
--- a/packages/turbo-utils/__tests__/getTurboRoot.test.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import path from "path";
-import getTurboRoot from "../src/getTurboRoot";
-import { setupTestFixtures } from "@turbo/test-utils";
-
-describe("getTurboConfigs", () => {
- const { useFixture } = setupTestFixtures({
- directory: path.join(__dirname, "../"),
- test: "common",
- });
-
- test.each([[""], ["child"]])(
- "finds the root in a non-monorepo (%s)",
- (repoPath) => {
- const { root } = useFixture({ fixture: `single-package` });
- const turboRoot = getTurboRoot(path.join(root, repoPath));
- expect(turboRoot).toEqual(root);
- }
- );
-
- test.each([
- [""],
- ["apps"],
- ["apps/docs"],
- ["apps/web"],
- ["packages"],
- ["packages/ui"],
- ["not-a-real/path"],
- ])("finds the root in a monorepo with workspace configs (%s)", (repoPath) => {
- const { root } = useFixture({ fixture: `workspace-configs` });
- const turboRoot = getTurboRoot(path.join(root, repoPath));
- expect(turboRoot).toEqual(root);
- });
-});