Skip to content

Commit da605d5

Browse files
committed
refactor: renamed test/fetch/ to test/fetch-api/ and test/module/ to test/module-system/
1 parent 0f0d51d commit da605d5

34 files changed

+15
-693
lines changed

Makefile

+11-11
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ build: build-dist build-test
88
build-dist:
99
npx rollup -c
1010

11-
build-test: test/fetch/api.spec.js
11+
build-test: test/fetch-api/api.spec.js
1212
npx tsc
1313

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

1717
commitlint: node_modules
1818
npx commitlint --from origin/main --to HEAD --verbose
@@ -37,32 +37,32 @@ test: test-fetch test-module
3737
test-fetch: test-fetch-browser test-fetch-whatwg test-fetch-node
3838

3939
test-fetch-browser: build
40-
./test/fetch/browser/run.sh
40+
./test/fetch-api/browser/run.sh
4141

4242
test-fetch-whatwg: build
43-
./test/fetch/whatwg/run.sh
43+
./test/fetch-api/whatwg/run.sh
4444

4545
test-fetch-node: build
46-
./test/fetch/node/run.sh
46+
./test/fetch-api/node/run.sh
4747

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

5050
test-module-web-cjs: build
51-
./test/module/web.cjs/run.sh
51+
./test/module-system/web.cjs/run.sh
5252

5353
test-module-web-esm: build
54-
./test/module/web.esm/run.sh
54+
./test/module-system/web.esm/run.sh
5555

5656
test-module-node-cjs: build
57-
./test/module/node.cjs/run.sh
57+
./test/module-system/node.cjs/run.sh
5858

5959
test-module-node-esm: build
60-
./test/module/node.esm/run.sh
60+
./test/module-system/node.esm/run.sh
6161

6262
test-module-react-native: build
63-
./test/module/react-native/run.sh
63+
./test/module-system/react-native/run.sh
6464

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

6868
.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.

test/fetch/browser/index.html test/fetch-api/browser/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<script src="../../setup.env.js"></script>
2020
<script src="../api.spec.js"></script>
21-
<script src="../../module/module.spec.js"></script>
21+
<script src="../../module-system/module.spec.js"></script>
2222
<script src="../../../dist/cross-fetch.js"></script>
2323

2424
<script>
File renamed without changes.

test/fetch/node/index.js test/fetch-api/node/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require('../../../dist/node-polyfill')
22

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

66
describe('Node:Fetch', () => {
77
addFetchSuite()
File renamed without changes.

test/fetch/whatwg/index.html test/fetch-api/whatwg/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<script src="../../setup.env.js"></script>
2020
<script src="../api.spec.js"></script>
21-
<script src="../../module/module.spec.js"></script>
21+
<script src="../../module-system/module.spec.js"></script>
2222
<script src="../../../dist/cross-fetch.js"></script>
2323

2424
<script>
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.

0 commit comments

Comments
 (0)