Skip to content

Commit

Permalink
test: remove old fetch-mock/core from module compat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Oct 20, 2024
1 parent 74c26b3 commit 276ecf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions import-compat/ts-cjs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const { default: fetchMockCore, FetchMock } = require('@fetch-mock/core');
const { default: fetchMockCore, FetchMock } = require('fetch-mock');
fetchMockCore.route('http://example.com', 200);

new FetchMock({});

const fetchMock = require('fetch-mock').default;
fetchMock.mock('http://example.com', 200);
4 changes: 1 addition & 3 deletions import-compat/ts-esm.mts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import fetchMockCore, { FetchMock } from '@fetch-mock/core';
import fetchMockCore, { FetchMock } from 'fetch-mock';
fetchMockCore.route('http://example.com', 200);

new FetchMock({});

import fetchMock from 'fetch-mock';
fetchMock.mock('http://example.com', 200);
4 changes: 1 addition & 3 deletions import-compat/ts-esm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import fetchMockCore, { FetchMock } from '@fetch-mock/core';
import fetchMockCore, { FetchMock } from 'fetch-mock';
fetchMockCore.route('http://example.com', 200);

new FetchMock({});

import fetchMock from 'fetch-mock';
fetchMock.mock('http://example.com', 200);

0 comments on commit 276ecf0

Please sign in to comment.