forked from ergonode/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
35 lines (35 loc) · 912 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
* See LICENSE for license details.
*/
module.exports = {
verbose: true,
moduleFileExtensions: [
'js',
'jsx',
'json',
'vue',
],
snapshotSerializers: [
'jest-serializer-vue',
],
moduleNameMapper: {
'^~/(.*)$': '<rootDir>/$1',
},
transform: {
'^.+\\.(js|jsx)?$': 'babel-jest',
'^.+\\.(vue)$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|png|svg|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
},
transformIgnorePatterns: [
'node_modules/',
],
testMatch: [
'**/(__tests__|tests)/**/*.test.(js|jsx|ts|tsx)',
],
testURL: 'http://ergonode.local/',
reporters: [
'default',
['jest-junit', { suiteName: 'jest tests', outputDirectory: 'build', outputName: './jest-junit.xml' }],
],
};