kopia lustrzana https://github.com/shoelace-style/shoelace
fixes #1101
rodzic
164ebce990
commit
67fbe3b34e
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue