Skip to content

Commit

Permalink
Update Jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Oct 13, 2023
1 parent ed8de56 commit 16645a8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/css-tokenizer/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@ import type { Config } from 'jest';
const config: Config = {
testEnvironment: 'node',
testTimeout: 30000,
testMatch: ['**/test/**/*.test.ts'],
testMatch: [
'**/test/**/*.test.ts',
],
transform: {
// Speed up tests by using SWC instead of Babel
'.ts': '@swc/jest',
},
collectCoverageFrom: [
'src/**/*.ts',
// No need to cover the version file
'!src/version.ts',
],
// Minimum coverage thresholds
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90,
},
},
};

export default config;

0 comments on commit 16645a8

Please sign in to comment.