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/main/jest.config.js | |
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/main/jest.config.js')
-rw-r--r-- | packages/main/jest.config.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/main/jest.config.js b/packages/main/jest.config.js index 9aaf344..c595d8d 100644 --- a/packages/main/jest.config.js +++ b/packages/main/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 | }; | ||