Skip to content

Commit

Permalink
fix: use file extension to avoid import errors for vitest and jest wr…
Browse files Browse the repository at this point in the history
…appers
  • Loading branch information
wheresrhys committed Oct 30, 2024
1 parent 59deb0c commit f1f25f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
defaultFetchMockConfig,
RemoveRouteOptions,
} from 'fetch-mock';
import './jest-extensions';
import './jest-extensions.js';
import type { Jest } from '@jest/environment';

type MockResetOptions = {
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
defaultFetchMockConfig,
RemoveRouteOptions,
} from 'fetch-mock';
import './vitest-extensions';
import './vitest-extensions.js';

type MockResetOptions = {
includeSticky: boolean;
Expand Down

0 comments on commit f1f25f1

Please sign in to comment.