Skip to content

Commit 31051e3

Browse files
committed
add vitest package, update pre-commit scripts to include the test command, adding 2 different test commands (one for ci, one for coverage but both will perform the same tests), update various ignore lists so we don't lint or spell check test output files
1 parent 8743f53 commit 31051e3

File tree

12 files changed

+1109
-19
lines changed

12 files changed

+1109
-19
lines changed

.github/workflows/pre-commit-checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ jobs:
2727
- name: Run lint
2828
run: npm run lint
2929

30+
- name: Run tests
31+
run: npm run test-ci
32+
3033
- name: Run build
3134
run: npm run build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lerna-debug.log*
1010
node_modules
1111
dist
1212
dist-ssr
13+
coverage
1314
*.local
1415
*.tsbuildinfo
1516

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
npm run cspell
22
npm run lint
3+
npm run test-ci
34
npm run build

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
node_modules
22
dist
3+
coverage
34
snippets
45
public
56
.vite
67
coverage
78
package-lock.json
8-
.md
9+
.md

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"ignorePaths": [
1212
"node_modules",
1313
"dist",
14+
"coverage",
1415
"public"
1516
]
1617
}

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function legacyPlugin(name, alias = name) {
2323
}
2424

2525
export default tseslint.config(
26-
{ ignores: ["node_modules", "dist", "build"] },
26+
{ ignores: ["node_modules", "dist", "coverage"] },
2727
{
2828
extends: [
2929
js.configs.recommended,

0 commit comments

Comments
 (0)