Skip to content

Commit

Permalink
build: minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Feb 6, 2022
1 parent c9b00c1 commit 32d48d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
"serve": "npm x -y @web/dev-server@latest -- wds --node-resolve -dw -p 3000 -a index.html",
"test": "npm run test:helpers && npm run test:elements",
"test:coverage": "export COVERAGE=true && npm run test:helpers && npm run test:elements",
"test:elements": "npm run wtr -- --config wtr.config.mjs",
"test:helpers": "export TEST_HELPERS=true && npm run wtr -- --config wtr.config.mjs",
"test:elements": "npm run wtr",
"test:helpers": "export TEST_HELPERS=true && npm run wtr",
"watch": "npm run clean && tsc --watch",
"wtr": "node --max-old-space-size=8192 --trace-deprecation node_modules/@web/test-runner/dist/bin.js"
"wtr": "node --max-old-space-size=8192 --trace-deprecation node_modules/@web/test-runner/dist/bin.js --config wtr.config.mjs"
},
"simple-git-hooks": {
"pre-commit": "npm run pre-commit",
Expand Down
8 changes: 4 additions & 4 deletions wtr.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { fromRollup } from '@web/dev-server-rollup';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { esbuildPlugin } from '@web/dev-server-esbuild';
import { playwrightLauncher } from '@web/test-runner-playwright';
import { fromRollup } from '@web/dev-server-rollup';
import { sendKeysPlugin } from '@web/test-runner-commands/plugins';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { playwrightLauncher } from '@web/test-runner-playwright';

const nodeResolvePlugin = fromRollup(nodeResolve);

Expand All @@ -28,9 +28,9 @@ const config = {
browserStartTimeout: 60e3,
concurrency: 3,
concurrentBrowsers: 9,
coverage: true,
...(
isCoverage && ({
coverage: true,
coverageConfig: {
report: true,
threshold: {
Expand Down

0 comments on commit 32d48d3

Please sign in to comment.