Skip to content

Commit

Permalink
chore: switch to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Aug 8, 2023
1 parent ed99d9d commit cd3fe40
Show file tree
Hide file tree
Showing 9 changed files with 762 additions and 481 deletions.
12 changes: 0 additions & 12 deletions .c8rc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"overrides": [
{
"files": ["**/*.test.ts"],
"plugins": ["ava"],
"extends": ["plugin:ava/recommended", "plugin:functional/off"],
"plugins": ["vitest"],
"extends": ["plugin:vitest/recommended", "plugin:functional/off"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unsafe-argument": "off",
Expand Down
14 changes: 0 additions & 14 deletions ava.config.mjs

This file was deleted.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@
"prepare": "husky install",
"release": "semantic-release",
"test": "pnpm run test:js",
"test:js": "c8 ava",
"test:js": "vitest --coverage --run",
"test:js:watch": "vitest",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@commitlint/cli": "17.6.7",
"@commitlint/config-conventional": "17.6.7",
"@cspell/dict-cryptocurrencies": "3.0.1",
"@rebeccastevens/eslint-config": "2.0.3",
"@rollup/plugin-replace": "5.0.2",
"@rollup/plugin-typescript": "11.1.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "10.0.1",
Expand All @@ -68,15 +70,13 @@
"@types/rollup-plugin-auto-external": "2.0.2",
"@typescript-eslint/eslint-plugin": "6.3.0",
"@typescript-eslint/parser": "6.3.0",
"ava": "5.3.1",
"c8": "8.0.1",
"@vitest/coverage-v8": "0.34.1",
"commitizen": "4.3.0",
"cspell": "6.31.3",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.46.0",
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-ava": "14.0.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-functional": "6.0.0",
"eslint-plugin-import": "2.28.0",
Expand All @@ -88,6 +88,7 @@
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-sonarjs": "0.20.0",
"eslint-plugin-unicorn": "48.0.1",
"eslint-plugin-vitest": "0.2.8",
"husky": "8.0.3",
"knip": "2.19.1",
"lint-staged": "13.2.3",
Expand All @@ -102,7 +103,9 @@
"ts-node": "10.9.1",
"ts-paths-esm-loader": "1.4.3",
"tsconfig-paths": "4.2.0",
"typescript": "5.1.6"
"typescript": "5.1.6",
"vite-tsconfig-paths": "4.2.0",
"vitest": "0.34.1"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit cd3fe40

Please sign in to comment.