init -> prepare

This commit is contained in:
Denis Pushkarev
2023-02-22 01:42:18 +07:00
parent b823c4072b
commit 6ed3f7ff1f
4 changed files with 20 additions and 18 deletions
+4 -4
View File
@@ -15,7 +15,7 @@ jobs:
node-version: 19
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run lint-raw
karma:
runs-on: ubuntu-latest
@@ -26,7 +26,7 @@ jobs:
node-version: 19
cache: npm
- run: npm ci
- run: npx run-s init bundle test-unit-karma
- run: npx run-s bundle test-unit-karma
promises-and-observables:
strategy:
@@ -43,7 +43,7 @@ jobs:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npx run-s init test-promises test-observables
- run: npx run-s test-promises test-observables
tests:
strategy:
@@ -64,4 +64,4 @@ jobs:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npx run-s init bundle test-unit-node test-entries test-compat-data test-compat-tools test-builder
- run: npx run-s bundle test-unit-node test-entries test-compat-data test-compat-tools test-builder
+10 -10
View File
@@ -83,43 +83,43 @@ You can run parts of the test case separately:
```
- Unit test case in Karma (modern Chromium, Firefox, WebKit (Playwright) and ancient WebKit (PhantomJS)):
```sh
npx run-s init bundle test-unit-karma
npx run-s prepare bundle test-unit-karma
```
- Unit test case in NodeJS:
```sh
npx run-s init bundle test-unit-node
npx run-s prepare bundle test-unit-node
```
- Unit test case in Bun (it's not included in `npm t` since required installed Bun):
```sh
npx run-s init bundle test-unit-bun
npx run-s prepare bundle test-unit-bun
```
- [Test262](https://github.com/tc39/test262) test case (it's not included to the default tests):
```sh
npx run-s init bundle-package test262
npx run-s prepare bundle-package test262
```
- [Promises/A+](https://github.com/promises-aplus/promises-tests) and [ES6 `Promise`](https://github.com/promises-es6/promises-es6) test cases:
```sh
npx run-s init test-promises
npx run-s prepare test-promises
```
- [ECMAScript `Observable` test case](https://github.com/tc39/proposal-observable):
```sh
npx run-s init test-observables
npx run-s prepare test-observables
```
- CommonJS entry points tests:
```sh
npx run-s init test-entries
npx run-s prepare test-entries
```
- `core-js-compat` tools tests:
```sh
npx run-s init test-compat-tools
npx run-s prepare test-compat-tools
```
- `core-js-builder` tests:
```sh
npx run-s init test-builder
npx run-s prepare test-builder
```
- If you want to run tests in a certain browser, at first, you should build packages and test bundles:
```sh
npx run-s init bundle
npx run-s prepare bundle
```
- For running the global version of the unit test case, use this file:
```sh
+6 -4
View File
@@ -15,7 +15,7 @@
],
"scripts": {
"zxi": "zx scripts/zxi.mjs",
"init": "npm run zxi scripts/init.mjs",
"prepare": "npm run zxi scripts/prepare.mjs",
"build-compat": "zx scripts/build-compat/index.mjs",
"bundle": "run-p bundle-package bundle-tests",
"bundle-package": "npm run zxi time scripts/bundle-package/bundle-package.mjs",
@@ -30,8 +30,10 @@
"compat-hermes": "zx tests/compat/hermes-adapter.mjs",
"compat-node": "node tests/compat/node-runner",
"compat-rhino": "zx tests/compat/rhino-adapter.mjs --version=1.7.14",
"lint": "run-s init test-eslint test-type-definitions bundle-package test-publint",
"test": "run-s init test-eslint test-type-definitions bundle test-publint test-unit test-promises test-observables test-entries test-compat-data test-compat-tools test-builder check",
"lint": "run-s prepare lint-raw",
"lint-raw": "run-s test-eslint test-type-definitions bundle-package test-publint",
"test": "run-s prepare test-raw",
"test-raw": "run-s test-eslint test-type-definitions bundle test-publint test-unit test-promises test-observables test-entries test-compat-data test-compat-tools test-builder check",
"test-eslint": "npm run zxi time tests/eslint/runner.mjs",
"test-publint": "npm run zxi time tests/publint/runner.mjs",
"test-unit": "run-s test-unit-karma test-unit-node",
@@ -46,7 +48,7 @@
"test-compat-tools": "zx tests/compat-tools/index.mjs",
"test-type-definitions": "npm run zxi time cd tests/type-definitions/runner.mjs",
"test262": "npm run zxi time cd tests/test262/runner.mjs",
"refresh": "node scripts/clean-dependencies.mjs && npm install-test",
"refresh": "node scripts/clean-dependencies.mjs && npm install && npm run test-raw",
"downloads": "zx scripts/downloads-by-versions.mjs",
"usage": "npm run zxi scripts/usage/usage.mjs",
"update-version": "npm run zxi scripts/update-version.mjs",