diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-06-26 01:26:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 23:26:19 +0000 |
commit | 465b5772763ccb8d4970d4c55e30a518abb7be3e (patch) | |
tree | e929e34910dbf6a3958cdc4de77dc1dcae93e7b0 /jest.config.js | |
parent | chore: add more strict types in electron directory (#367) (diff) | |
download | ferdium-app-465b5772763ccb8d4970d4c55e30a518abb7be3e.tar.gz ferdium-app-465b5772763ccb8d4970d4c55e30a518abb7be3e.tar.zst ferdium-app-465b5772763ccb8d4970d4c55e30a518abb7be3e.zip |
chore: moved tests to ./test directory (#366)
* chore: allow coverage to be generated from non-tested files
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jest.config.js b/jest.config.js index 264014997..964e4d4e6 100644 --- a/jest.config.js +++ b/jest.config.js | |||
@@ -20,7 +20,7 @@ module.exports = { | |||
20 | collectCoverage: true, | 20 | collectCoverage: true, |
21 | 21 | ||
22 | // An array of glob patterns indicating a set of files for which coverage information should be collected | 22 | // An array of glob patterns indicating a set of files for which coverage information should be collected |
23 | // collectCoverageFrom: undefined, | 23 | collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/internal-api'], |
24 | 24 | ||
25 | // The directory where Jest should output its coverage files | 25 | // The directory where Jest should output its coverage files |
26 | coverageDirectory: 'coverage', | 26 | coverageDirectory: 'coverage', |
@@ -117,9 +117,7 @@ module.exports = { | |||
117 | // rootDir: undefined, | 117 | // rootDir: undefined, |
118 | 118 | ||
119 | // A list of paths to directories that Jest should use to search for files in | 119 | // A list of paths to directories that Jest should use to search for files in |
120 | roots: [ | 120 | roots: ['src/', 'test/'], |
121 | 'src' | ||
122 | ], | ||
123 | 121 | ||
124 | // Allows you to use a custom runner instead of Jest's default test runner | 122 | // Allows you to use a custom runner instead of Jest's default test runner |
125 | // runner: "jest-runner", | 123 | // runner: "jest-runner", |