Skip to content

Commit

Permalink
fix: add runtime field of jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
decadef20 committed May 16, 2024
1 parent c3adf19 commit 7a6a59a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/knip/src/plugins/jest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ const resolveDependencies = async (config: JestInitialOptions, options: PluginOp
const snapshotResolver = config.snapshotResolver ? [config.snapshotResolver] : [];
const testSequencer = config.testSequencer ? [config.testSequencer] : [];
const globalSetup = config.globalSetup ? [config.globalSetup] : [];
const runtime = config.runtime ? [config.runtime] : [];

return [
...presets,
Expand All @@ -93,6 +94,7 @@ const resolveDependencies = async (config: JestInitialOptions, options: PluginOp
...snapshotResolver,
...testSequencer,
...globalSetup,
...runtime,
];
};

Expand Down

0 comments on commit 7a6a59a

Please sign in to comment.