Skip to content

Commit

Permalink
fix(jest): support setupFiles custom config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jan 17, 2024
1 parent 0b4a01f commit 30c097f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/jest/src/jest.config.ts
Expand Up @@ -76,6 +76,14 @@ export default async function jestConfig(resolve: Function, rootDir: string): Pr

if (overrides) {
const supportedKeys: (keyof Jest.Config)[] = [
/**
* https://jestjs.io/docs/configuration#setupfiles-array
*
* ```json
* "setupFiles": ["jest-canvas-mock"]
* ```
*/
'setupFiles',
'preset',
/**
* ESM Support
Expand Down

0 comments on commit 30c097f

Please sign in to comment.