Skip to content

Commit

Permalink
test: switch to vitest (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Mar 5, 2024
1 parent da2a49f commit aa444fd
Show file tree
Hide file tree
Showing 15 changed files with 1,165 additions and 947 deletions.
13 changes: 0 additions & 13 deletions mocha.bootstrap.js

This file was deleted.

25 changes: 9 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"format": "prettier --cache --write .",
"lint": "eslint --cache --cache-strategy content --report-unused-disable-directives .",
"ts-check": "tsc",
"test": "cross-env NODE_ENV=test mocha --require ./mocha.bootstrap.js \"test/*.ts\"",
"test": "vitest",
"test:update-snapshots": "vitest run -u",
"coverage": "vitest run --coverage",
"docs:dev": "docsify serve docs",
"premigrate": "run-s build:bin",
"migrate": "node bin/node-pg-migrate.js",
"prepublishOnly": "pnpm run clean && pnpm install && pnpm run build",
"preflight": "pnpm install && run-s format build lint test ts-check"
"preflight": "pnpm install && run-s format build lint test:update-snapshots ts-check"
},
"bin": {
"node-pg-migrate": "bin/node-pg-migrate.js"
Expand Down Expand Up @@ -100,20 +102,14 @@
"devDependencies": {
"@eslint-types/prettier": "5.1.3",
"@eslint-types/typescript-eslint": "7.0.2",
"@types/chai": "4.3.12",
"@types/chai-as-promised": "7.1.8",
"@types/mkdirp": "1.0.2",
"@types/mocha": "9.1.1",
"@types/node": "~16.18.86",
"@types/node": "18.19.21",
"@types/pg": "8.11.2",
"@types/proxyquire": "1.3.31",
"@types/sinon": "10.0.20",
"@types/sinon-chai": "3.2.12",
"@types/yargs": "17.0.32",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"chai": "4.4.1",
"chai-as-promised": "7.1.1",
"@vitest/coverage-v8": "1.3.1",
"@vitest/ui": "1.3.1",
"config": "3.3.11",
"cross-env": "7.0.3",
"docsify-cli": "4.4.4",
Expand All @@ -125,18 +121,15 @@
"eslint-gitignore": "0.1.0",
"eslint-plugin-prettier": "5.1.3",
"json5": "2.2.0",
"mocha": "9.2.2",
"npm-run-all2": "6.1.2",
"pg": "8.11.3",
"prettier": "3.2.5",
"prettier-plugin-organize-imports": "3.2.4",
"proxyquire": "2.1.3",
"rimraf": "5.0.5",
"sinon": "12.0.1",
"sinon-chai": "3.7.0",
"ts-node": "10.9.2",
"tsup": "8.0.2",
"typescript": "4.8.4"
"typescript": "4.8.4",
"vitest": "1.3.1"
},
"peerDependencies": {
"@types/pg": ">=6.0.0 <9.0.0",
Expand Down

0 comments on commit aa444fd

Please sign in to comment.