diff options
| author | 2023-11-03 21:25:40 +0800 | |
|---|---|---|
| committer | 2023-11-03 21:25:40 +0800 | |
| commit | 9029588590bea8b10451575c5142dcde77ecd1b5 (patch) | |
| tree | 04cf8aee56c23fd225ff19d340f7cee621d874ef /packages/turbo-utils/__tests__/getTurboRoot.test.ts | |
| parent | 94071d7ce16c56641d67d488e2bac6be84ffe731 (diff) | |
| download | HydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.tar.gz HydroRoll-9029588590bea8b10451575c5142dcde77ecd1b5.zip | |
chore: delete useless files
Diffstat (limited to 'packages/turbo-utils/__tests__/getTurboRoot.test.ts')
| -rw-r--r-- | packages/turbo-utils/__tests__/getTurboRoot.test.ts | 33 |
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); - }); -}); |
