Skip to content

Commit 2b839ca

Browse files
committed
chore: move __tests__ dir to the root of the repo
Signed-off-by: Jakub Freisler <[email protected]>
1 parent acf075d commit 2b839ca

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed
File renamed without changes.

src/task.hook.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { file, setGracefulCleanup, withFile } from "tmp-promise";
1212

1313
setGracefulCleanup();
1414

15-
const fixturesPath = path.resolve(__dirname, "__tests__", "fixtures");
15+
const fixturesPath = path.resolve(__dirname, "..", "__tests__", "fixtures");
1616
const newFileContent = "new file content";
1717

1818
const writeTmpFixture = async (pathToWriteTo: string, fixtureName: string) =>

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"baseUrl": ".",
1010
"paths": {
1111
"@/*": ["src/*"],
12-
"@fixtures/*": ["src/__tests__/partials/*"],
13-
"@mocks/*": ["src/__tests__/mocks/*"]
12+
"@fixtures/*": ["__tests__/partials/*"],
13+
"@mocks/*": ["__tests__/mocks/*"]
1414
}
1515
},
1616
"include": ["src/*.ts", "vitest.config.ts"]

vitest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export default defineConfig({
2121
statements: 90,
2222
},
2323
alias: {
24-
'@fixtures/*': path.resolve(__dirname, 'src', '__tests__', 'partials'),
25-
'@mocks/*': path.resolve(__dirname, 'src', '__tests__', 'mocks'),
24+
'@fixtures/*': path.resolve(__dirname, '__tests__', 'partials'),
25+
'@mocks/*': path.resolve(__dirname, '__tests__', 'mocks'),
2626
'@/*': path.resolve(__dirname, 'src')
2727
}
2828
},

0 commit comments

Comments
 (0)