diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-04-22 18:38:16 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-04-22 19:20:52 +0300 |
commit | 33a8b596065985b02481698c4dc5f74460706d9f (patch) | |
tree | 051ce6d45cb3de93d1ac06649e3709ddabbb8cc7 /jest.config.js | |
parent | e413b09f923da70a58cf8ac8cee24f411b1d7ca4 (diff) |
Add more varied JS test cases
Added more varied JS test cases as examples for how to test different
parts of the Vue code like stores and services.
Adjusted global test namespace.
Introduced jest mock for axios.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js index de8cde53d..852af1651 100644 --- a/jest.config.js +++ b/jest.config.js @@ -25,4 +25,8 @@ module.exports = { // Allow tests in the src and in tests/unit folders testMatch: ['<rootDir>/src/**/*.(spec|test).(ts|js)'], setupFilesAfterEnv: ['<rootDir>/src/test-setup.js'], + transform: { + // process `*.js` files with `babel-jest` + '.*\\.(js)$': 'babel-jest', + }, } |