-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (21 loc) · 867 Bytes
/
jest.config.js
File metadata and controls
22 lines (21 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const yaml = require('read-yaml');
const config = yaml.sync('.stilus.yml');
module.exports = {
moduleFileExtensions: config.dashboard.tests.module_file_extensions,
transform: {
".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
"^.+\\.vue$": "vue-jest",
"^.+\\.tsx?$": "ts-jest",
"^.+\\.(vue|js)$": "babel-jest"
},
moduleNameMapper: config.dashboard.tests.module_name_mapper,
snapshotSerializers: [
'jest-serializer-vue'
],
collectCoverage: config.dashboard.tests.coverage,
collectCoverageFrom: config.dashboard.tests.coverage_match,
coverageDirectory: config.dashboard.tests.coverage_dir,
coverageReporters: config.dashboard.tests.coverage_reporters,
testMatch: config.dashboard.tests.test_match,
testURL: `http://${config.dashboard.web_server.host}:${config.dashboard.web_server.port}/`
};