Skip to content

Commit

Permalink
Move Jest config to TypeScript file
Browse files Browse the repository at this point in the history
Reasons:

1. This is officially recommended
   <https://jestjs.io/docs/configuration>
2. Reduces clutter in package.json
3. Allows type checking and IDE hints for config options.
  • Loading branch information
victorlin committed Nov 6, 2024
1 parent def2ffb commit 1a1c62f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 9 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { Config } from 'jest';

const config: Config = {
transformIgnorePatterns: [
"jest-runner",
],
};

export default config;
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
"smoke-test:ci": "start-server-and-test server http://localhost:4000 smoke-test",
"diff-lang": "./scripts/diff-lang.js"
},
"jest": {
"transformIgnorePatterns": [
"jest-runner"
]
},
"dependencies": {
"@babel/core": "^7.3.4",
"@babel/plugin-proposal-class-properties": "^7.3.4",
Expand Down

0 comments on commit 1a1c62f

Please sign in to comment.