Skip to content

Commit

Permalink
type(@tsbb/jest): fix type error issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 24, 2024
1 parent 461f38b commit 105a2db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/jest/src/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ export default async function jestConfig(resolve: Function, rootDir: string): Pr
for (const key of supportedKeys) {
if (overrides.hasOwnProperty(key)) {
if (Array.isArray(conf[key]) || typeof conf[key] !== 'object') {
// @ts-ignore
conf[key] = overrides[key];
conf[key] = overrides[key] as any;
} else {
conf[key] = Object.assign({}, conf[key], overrides[key]);
conf[key] = Object.assign({}, conf[key], overrides[key]) as any;
}
delete overrides[key];
}
Expand Down

0 comments on commit 105a2db

Please sign in to comment.