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.

ts-node is required to read the TypeScript configuration file.
  • Loading branch information
victorlin committed Nov 6, 2024
1 parent 4e1ed7a commit f9b8ce9
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 11 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;
Loading

0 comments on commit f9b8ce9

Please sign in to comment.