pull/1129/head
Cory LaViska 2023-01-04 09:58:56 -05:00
rodzic 164ebce990
commit 67fbe3b34e
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -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"

Wyświetl plik

@ -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 {
</body>
</html>
`,
// 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(/^.*\/(?<fileName>.*)\.test\.ts/).groups.fileName;
return {