diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-05-26 11:20:00 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-27 21:07:44 +0200 |
commit | 4ed5115c2b06f204fd0aa3351d8acaee6884444f (patch) | |
tree | 121501617c3f3948ecf5911bfb13085dc994469d /packages/shared | |
parent | test(shared): ServiceBase tests (diff) | |
download | sophie-4ed5115c2b06f204fd0aa3351d8acaee6884444f.tar.gz sophie-4ed5115c2b06f204fd0aa3351d8acaee6884444f.tar.zst sophie-4ed5115c2b06f204fd0aa3351d8acaee6884444f.zip |
build: fix test rootDir configuration
Each package should load the tests from its src directory only.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/shared')
-rw-r--r-- | packages/shared/jest.config.js | 6 | ||||
-rw-r--r-- | packages/shared/tsconfig.json | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/packages/shared/jest.config.js b/packages/shared/jest.config.js index 9aaf344..c595d8d 100644 --- a/packages/shared/jest.config.js +++ b/packages/shared/jest.config.js | |||
@@ -1,4 +1,6 @@ | |||
1 | import baseConfig from '../../config/jest.config.base.js'; | 1 | import baseConfig from '../../config/jest.config.base.js'; |
2 | 2 | ||
3 | // eslint-disable-next-line unicorn/prefer-export-from -- Can't export from default. | 3 | export default { |
4 | export default baseConfig; | 4 | ...baseConfig, |
5 | rootDir: 'src', | ||
6 | }; | ||
diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json index daad7c4..eb1e81d 100644 --- a/packages/shared/tsconfig.json +++ b/packages/shared/tsconfig.json | |||
@@ -5,7 +5,12 @@ | |||
5 | "emitDeclarationOnly": false, | 5 | "emitDeclarationOnly": false, |
6 | "declarationDir": null, | 6 | "declarationDir": null, |
7 | "noEmit": true, | 7 | "noEmit": true, |
8 | "rootDir": null | 8 | "rootDir": "../.." |
9 | }, | 9 | }, |
10 | "include": ["src/**/*.ts", ".eslintrc.cjs", "esbuild.config.js"] | 10 | "include": [ |
11 | "src/**/*.ts", | ||
12 | ".eslintrc.cjs", | ||
13 | "esbuild.config.js", | ||
14 | "jest.config.js" | ||
15 | ] | ||
11 | } | 16 | } |