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 /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 'jest.config.js')
-rw-r--r-- | jest.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index 4e765f0..3e1f9ce 100644 --- a/jest.config.js +++ b/jest.config.js | |||
@@ -1,7 +1,7 @@ | |||
1 | /** @type {import('@jest/types').Config.InitialOptions} */ | 1 | /** @type {import('@jest/types').Config.InitialOptions} */ |
2 | export default { | 2 | export default { |
3 | projects: ['<rootDir>/packages/*/jest.config.js'], | 3 | projects: ['<rootDir>/packages/*/jest.config.js'], |
4 | collectCoverageFrom: ['src/**/*.{ts,tsx}'], | 4 | collectCoverageFrom: ['**/*.{ts,tsx}'], |
5 | /** @type {'v8'} */ | 5 | /** @type {'v8'} */ |
6 | coverageProvider: 'v8', | 6 | coverageProvider: 'v8', |
7 | /** @type {['cobertura', 'text']} */ | 7 | /** @type {['cobertura', 'text']} */ |