diff --git a/package.json b/package.json index d652b071..efbb0a58 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,9 @@ "lint:fix": "eslint src --max-warnings 0 --fix", "ts-check": "tsc --noEmit --project ./tsconfig.json", "create": "plop --plopfile scripts/plop/plopfile.js", - "test": "web-test-runner", - "test:component": "npm run test -- --watch --group", - "test:watch": "web-test-runner --watch", + "test": "web-test-runner --group default", + "test:component": "web-test-runner -- --watch --group", + "test:watch": "web-test-runner --watch --group default", "spellcheck": "cspell \"**/*.{js,ts,json,html,css,md}\" --no-progress", "list-outdated-dependencies": "npm-check-updates --format repo --peer", "update-dependencies": "npm-check-updates --peer -u && npm install && npm run lint:fix && npm run prettier && npm run verify" diff --git a/web-test-runner.config.js b/web-test-runner.config.js index 04223f45..a56dd2ea 100644 --- a/web-test-runner.config.js +++ b/web-test-runner.config.js @@ -4,7 +4,7 @@ import { globbySync } from 'globby'; export default { rootDir: '.', - files: 'src/**/*.test.ts', + files: 'src/**/*.test.ts', // "default" group concurrentBrowsers: 3, nodeResolve: true, plugins: [ @@ -27,8 +27,8 @@ export default { `, - // Create a named group for every test file to enable running single tests. - // If a test file is `split-panel.test.ts` then you can run `npm run test -- --group split-panel` to run only that file's tests + // Create a named group for every test file to enable running single tests. If a test file is `split-panel.test.ts` + // then you can run `npm run test -- --group split-panel` to run only that component's tests. groups: globbySync('src/**/*.test.ts').map(path => { const groupName = path.match(/^.*\/(?.*)\.test\.ts/).groups.fileName; return {