Skip to content

Commit

Permalink
test: add coverage for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Oct 8, 2023
1 parent 960186a commit f204436
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 37 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ env.js
# Vitepress
docs/.vitepress/dist
docs/.vitepress/cache

# Vitest
coverage
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "rollup --config rollup.config.js --environment BUILD:production",
"release": "mkdir -p dist && mv main.js dist/ && cp src/styles.css dist/ && cp manifest.json dist/",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix",
"prettify": "prettier --write '*/**/*.{js,ts,tsx}'"
},
Expand Down Expand Up @@ -39,6 +40,7 @@
"@types/node": "^14.18.54",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitest/coverage-istanbul": "^0.34.6",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
Expand Down
Loading

0 comments on commit f204436

Please sign in to comment.