-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #770 from wheresrhys/rhys/toolchain-import-tests
Rhys/toolchain import tests
- Loading branch information
Showing
10 changed files
with
223 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,5 @@ coverage/ | |
# built files | ||
/docs/fetch-mock/dist/ | ||
/packages/**/dist | ||
|
||
import-compat/ts-*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const fetchMockCore = require('@fetch-mock/core').default; | ||
fetchMockCore.route('http://example.com', 200); | ||
|
||
const fetchMock = require('fetch-mock').default; | ||
fetchMock.mock('http://example.com', 200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import fetchMockCore from "@fetch-mock/core"; | ||
fetchMockCore.route("http://example.com", 200); | ||
|
||
import fetchMock from "fetch-mock"; | ||
fetchMock.mock("http://example.com", 200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "fetch-mock-compat-tests", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"compat:ts:esm": "tsc ts-esm.ts --target esnext --moduleResolution nodenext --module nodenext && node ts-esm.js", | ||
"compat:ts:cjs": "tsc ts-cjs.ts --target esnext --moduleResolution nodenext --module nodenext && node ts-cjs.js", | ||
"compat:js:esm": "node js-esm.mjs", | ||
"compat:js:cjs": "node js-cjs.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const fetchMockCore = require("@fetch-mock/core").default; | ||
fetchMockCore.route("http://example.com", 200); | ||
|
||
const fetchMock = require("fetch-mock").default; | ||
fetchMock.mock("http://example.com", 200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import fetchMockCore from "@fetch-mock/core"; | ||
fetchMockCore.route("http://example.com", 200); | ||
|
||
import fetchMock from "fetch-mock"; | ||
fetchMock.mock("http://example.com", 200); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters