Skip to content

Commit

Permalink
refactor: renamed test/fetch/ to test/fetch-api/ and test/module/ to …
Browse files Browse the repository at this point in the history
…test/module-system/
  • Loading branch information
lquixada committed Oct 13, 2021
1 parent 0f0d51d commit da605d5
Show file tree
Hide file tree
Showing 34 changed files with 15 additions and 693 deletions.
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ build: build-dist build-test
build-dist:
npx rollup -c

build-test: test/fetch/api.spec.js
build-test: test/fetch-api/api.spec.js
npx tsc

browser:
./bin/server --exec "npx open-cli http://localhost:8000/test/fetch/browser/"
./bin/server --exec "npx open-cli http://localhost:8000/test/fetch-api/browser/"

commitlint: node_modules
npx commitlint --from origin/main --to HEAD --verbose
Expand All @@ -37,32 +37,32 @@ test: test-fetch test-module
test-fetch: test-fetch-browser test-fetch-whatwg test-fetch-node

test-fetch-browser: build
./test/fetch/browser/run.sh
./test/fetch-api/browser/run.sh

test-fetch-whatwg: build
./test/fetch/whatwg/run.sh
./test/fetch-api/whatwg/run.sh

test-fetch-node: build
./test/fetch/node/run.sh
./test/fetch-api/node/run.sh

test-module: test-module-web-cjs test-module-web-esm test-module-node-cjs test-module-node-esm test-module-react-native

test-module-web-cjs: build
./test/module/web.cjs/run.sh
./test/module-system/web.cjs/run.sh

test-module-web-esm: build
./test/module/web.esm/run.sh
./test/module-system/web.esm/run.sh

test-module-node-cjs: build
./test/module/node.cjs/run.sh
./test/module-system/node.cjs/run.sh

test-module-node-esm: build
./test/module/node.esm/run.sh
./test/module-system/node.esm/run.sh

test-module-react-native: build
./test/module/react-native/run.sh
./test/module-system/react-native/run.sh

typecheck:
npx tsc --lib ES6 --noEmit index.d.ts ./test/fetch/api.spec.ts
npx tsc --lib ES6 --noEmit index.d.ts ./test/fetch-api/api.spec.ts

.PHONY: all build deploy lint test test-fetch test-fetch-browser test-fetch-whatwg test-fetch-node test-module test-module-web-cjs test-module-web-esm test-module-node-cjs test-module-node-esm test-module-react-native typecheck
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<script src="../../setup.env.js"></script>
<script src="../api.spec.js"></script>
<script src="../../module/module.spec.js"></script>
<script src="../../module-system/module.spec.js"></script>
<script src="../../../dist/cross-fetch.js"></script>

<script>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/fetch/node/index.js → test/fetch-api/node/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('../../../dist/node-polyfill')

const addFetchSuite = require('../api.spec')
const { addPolyfillSuite } = require('../../module/module.spec')
const { addPolyfillSuite } = require('../../module-system/module.spec')

describe('Node:Fetch', () => {
addFetchSuite()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<script src="../../setup.env.js"></script>
<script src="../api.spec.js"></script>
<script src="../../module/module.spec.js"></script>
<script src="../../module-system/module.spec.js"></script>
<script src="../../../dist/cross-fetch.js"></script>

<script>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit da605d5

Please sign in to comment.