ts-results-es
Version:
A TypeScript implementation of Rust's Result and Option objects.
25 lines (23 loc) • 526 B
JavaScript
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: '/test/.*.test.ts',
collectCoverageFrom: ['src/**/*.ts'],
collectCoverage: true,
coverageThreshold: {
'./src/**/*.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
transform: {
'^.*\.ts$': ['ts-jest', {
tsconfig: 'test/tsconfig.json'
}]
},
moduleNameMapper: {
"^(.*)\\.js$": "$1"
},
};