diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-23 15:57:39 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-23 19:16:10 +0300 |
commit | e6a5f390c7857d947678ec50cd0e87f113ddbf35 (patch) | |
tree | 3ea08cadaf514b73dba5d8a3e45e1f8a6e7aec47 /jest.config.js | |
parent | de6d64702abdb1e487855f26824c19f05c3bdc7b (diff) |
More JS tests for stores
Added more JS tests for stores.
Extracted global store config to a separate file to be able to include it in
tests.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js index 852af1651..c8a15b8ef 100644 --- a/jest.config.js +++ b/jest.config.js @@ -24,6 +24,8 @@ module.exports = { preset: '@vue/cli-plugin-unit-jest/presets/no-babel', // Allow tests in the src and in tests/unit folders testMatch: ['<rootDir>/src/**/*.(spec|test).(ts|js)'], + resetMocks: false, + setupFiles: ['jest-localstorage-mock'], setupFilesAfterEnv: ['<rootDir>/src/test-setup.js'], transform: { // process `*.js` files with `babel-jest` |