Skip to content

Commit 6dc8ad7

Browse files
committed
Separate test:dev
1 parent 49734f0 commit 6dc8ad7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ docs/vendor
66
dist/*
77
dist-*/*
88
node_modules/
9-
test/rollup/dist/
10-
test/webpack/dist/
9+
test-dev/rollup/dist/
10+
test-dev/webpack/dist/
1111
test/workers/*.js
1212
.DS_Store
1313
Thumbs.db

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
"build:es": "tsc -p tsconfig-esm.json",
1414
"postbuild": "npm run bundle",
1515
"bundle": "rollup -c -f umd --file=bundle/worker.js --name=threads --silent -- dist-esm/worker/bundle-entry.js",
16-
"test": "npm run test:ava && npm run test:puppeteer:basic && npm run test:puppeteer:webpack",
17-
"test:ava": "cross-env TS_NODE_FILES=true ava",
16+
"test": "npm run test:ava && npm run test:dev && npm run test:puppeteer:basic && npm run test:puppeteer:webpack",
17+
"test:ava": "cross-env TS_NODE_FILES=true ava ./test/**/*.test.ts",
18+
"test:dev": "cross-env TS_NODE_FILES=true ava ./test-dev/**/*.test.ts",
1819
"test:puppeteer:basic": "puppet-run --plugin=mocha --bundle=./test/workers/:workers/ --serve=./bundle/worker.js:/worker.js ./test/*.chromium*.ts",
1920
"test:puppeteer:webpack": "puppet-run --serve ./test/webpack/dist/app.web/0.worker.js --serve ./test/webpack/dist/app.web/1.worker.js --plugin=mocha ./test/webpack/webpack.chromium.mocha.ts",
2021
"posttest": "tslint --project .",
@@ -108,7 +109,8 @@
108109
"ts"
109110
],
110111
"files": [
111-
"./test/**/*.test.ts"
112+
"./test/**/*.test.ts",
113+
"./test-dev/**/*.test.ts"
112114
],
113115
"require": [
114116
"ts-node/register"

0 commit comments

Comments
 (0)