-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathjest.config.js
31 lines (31 loc) · 992 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
module.exports = {
verbose: true,
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/**',
'!<rootDir>/src/runtime/bind-data.js',
'!<rootDir>/src/runtime/bind-data-proxy.js',
'!<rootDir>/src/runtime/calc-computed-observe.js',
'!<rootDir>/src/global-api/extend.js',
'!<rootDir>/src/runtime/mixin.js',
],
testTimeout: 30000,
projects: [
{
testEnvironment: 'node',
testMatch: [
'<rootDir>/test/spec/compiler/*.spec.js',
'<rootDir>/test/ssr/*.spec.js',
],
},
{
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/test/spec/runtime/**/*.spec.js'],
setupFilesAfterEnv: [
'<rootDir>/test/helpers/wait-for-update.js',
'<rootDir>/test/helpers/trigger-event.js',
'<rootDir>/test/helpers/to-have-been-warned.js',
],
},
],
};