diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-24 08:48:09 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-24 12:16:37 +0300 |
commit | c349e7ebbb165a08b2905763f456adedd6c8f785 (patch) | |
tree | 47ebfdba96e0d2cd6437f82fce78df68c648f844 /jest.config.js | |
parent | 962a44a9b25397d929ae79965f4ea25f6c04ab21 (diff) |
Allow tests in the /src folder
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index 026698f51..77eaf4b0a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -22,5 +22,7 @@ module.exports = { preset: '@vue/cli-plugin-unit-jest/presets/no-babel', - setupFilesAfterEnv: ['<rootDir>/tests/unit/setup.js'] + // Allow tests in the src and in tests/unit folders + testMatch: ['<rootDir>/src/**/*.(spec|test).(ts|js)', '<rootDir>/tests/unit/**/*.(spec|test).(ts|js)'], + setupFilesAfterEnv: ['<rootDir>/tests/unit/setup.js'], } |