SymphonyElectron/jest-config.json

35 lines
925 B
JSON
Raw Normal View History

{
"roots": ["<rootDir>/spec"],
2019-01-22 09:12:16 -06:00
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.svg$": "<rootDir>/svgTransform.js"
2019-01-22 09:12:16 -06:00
},
"testRegex": "(test|spec)\\.tsx?$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"verbose": true,
"collectCoverage": true,
"coverageReporters": ["text", "html"],
"coverageDirectory": "dist/coverage",
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!**/node_modules/**",
"!**/vendor/**"
],
"reporters": [
"default",
[
"./node_modules/jest-html-reporter",
{
"pageTitle": "Symphony Electron Test Result",
"includeFailureMsg": true,
"includeConsoleLog": true,
"theme": "lightTheme",
"sort": "status",
"outputPath": "./dist/coverage/UnitTestsReport.html"
}
]
],
"setupFiles": ["./spec/setup/test-setup.js"],
"snapshotSerializers": ["enzyme-to-json/serializer"]
}