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",
|
"lint:fix": "eslint src --max-warnings 0 --fix",
|
||||||
"ts-check": "tsc --noEmit --project ./tsconfig.json",
|
"ts-check": "tsc --noEmit --project ./tsconfig.json",
|
||||||
"create": "plop --plopfile scripts/plop/plopfile.js",
|
"create": "plop --plopfile scripts/plop/plopfile.js",
|
||||||
"test": "web-test-runner",
|
"test": "web-test-runner --group default",
|
||||||
"test:component": "npm run test -- --watch --group",
|
"test:component": "web-test-runner -- --watch --group",
|
||||||
"test:watch": "web-test-runner --watch",
|
"test:watch": "web-test-runner --watch --group default",
|
||||||
"spellcheck": "cspell \"**/*.{js,ts,json,html,css,md}\" --no-progress",
|
"spellcheck": "cspell \"**/*.{js,ts,json,html,css,md}\" --no-progress",
|
||||||
"list-outdated-dependencies": "npm-check-updates --format repo --peer",
|
"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"
|
"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 {
|
export default {
|
||||||
rootDir: '.',
|
rootDir: '.',
|
||||||
files: 'src/**/*.test.ts',
|
files: 'src/**/*.test.ts', // "default" group
|
||||||
concurrentBrowsers: 3,
|
concurrentBrowsers: 3,
|
||||||
nodeResolve: true,
|
nodeResolve: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -27,8 +27,8 @@ export default {
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`,
|
`,
|
||||||
// Create a named group for every test file to enable running single tests.
|
// Create a named group for every test file to enable running single tests. If a test file is `split-panel.test.ts`
|
||||||
// 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
|
// then you can run `npm run test -- --group split-panel` to run only that component's tests.
|
||||||
groups: globbySync('src/**/*.test.ts').map(path => {
|
groups: globbySync('src/**/*.test.ts').map(path => {
|
||||||
const groupName = path.match(/^.*\/(?<fileName>.*)\.test\.ts/).groups.fileName;
|
const groupName = path.match(/^.*\/(?<fileName>.*)\.test\.ts/).groups.fileName;
|
||||||
return {
|
return {
|
||||||
|
|
Ładowanie…
Reference in New Issue