@npm.tangocode/tc_ui_components
Version:
[<img src="https://s3.amazonaws.com/tc-ui-components/documentationImages/tangoCodeLogo.png">](https://tangocode.com/) # TangoCode React UI Components #
52 lines (51 loc) • 1.49 kB
JavaScript
module.exports = {
snapshotSerializers: ["enzyme-to-json/serializer"],
setupTestFrameworkScriptFile: require.resolve(
"./testUtils/ezymeSetupScript.ts"
),
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
moduleNameMapper: {
"@components(.*)$": "<rootDir>/src/components/$1",
"@testUtils(.*)$": "<rootDir>/testUtils/$1",
"@constants(.*)$": "<rootDir>/src/constants/$1",
"\\.(css|less)$": "identity-obj-proxy",
},
transform: {
".(ts|tsx)": "ts-jest",
},
roots: ["<rootDir>"],
testRegex: "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
coverageDirectory: "coverage",
testPathIgnorePatterns: [
"<rootDir>/build/",
"<rootDir>/node_modules/",
"<rootDir>/src/__tests__/utils/",
],
verbose: true,
collectCoverageFrom: [
"src/**/*.{ts,tsx,js,jsx}",
"!src/**/*.d.ts",
"!src/index.ts",
"!src/components/Default/index.tsx",
"!src/app.tsx",
"!src/**/testUtils.tsx",
"!src/constants/*",
"!src/documentation/*",
"!src/icomoon/**/*",
"!src/**/{style,styles}.{ts,tsx}",
],
coverageThreshold: {
global: {
statements: 60,
branches: 40,
functions: 60,
lines: 60,
},
},
globals: {
"ts-jest": {
ignoreCoverageForDecorators: true,
ignoreCoverageForAllDecorators: true,
},
},
};