Skip to content

Commit

Permalink
chore: change the scripts related to test to work with vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelvur committed Jul 13, 2024
1 parent c44c785 commit 3c30460
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 8 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
},
"type": "module",
"scripts": {
"test": "vitest",
"test:watch": "vitest --watch",
"test": "vitest run",
"test:watch": "vitest watch",
"coverage": "vitest run --coverage",
"build": "tsup src/index.ts --dts --format cjs,esm",
"watch": "npm run build -- --watch",
"prepublishOnly": "npm run lint && npm run test && npm run build",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"coverage": "echo \"To be defined\"",
"release": "release-it -n"
},
"husky": {
Expand All @@ -44,6 +44,7 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@vitest/coverage-v8": "^2.0.2",
"eslint": "^8.40.0",
"eslint-plugin-import": "^2.27.5",
"husky": "^1.1.4",
Expand Down
Loading

0 comments on commit 3c30460

Please sign in to comment.