Skip to content

Commit

Permalink
Migrate tests to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Oct 16, 2023
1 parent 62a4763 commit 496baa4
Show file tree
Hide file tree
Showing 9 changed files with 419 additions and 430 deletions.
30 changes: 0 additions & 30 deletions jest.config.ts

This file was deleted.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,20 @@
"@gilbarbara/prettier-config": "^1.0.0",
"@gilbarbara/tsconfig": "^0.2.3",
"@size-limit/preset-small-lib": "^9.0.0",
"@types/jest": "^29.5.5",
"@types/node": "^20.8.6",
"@vitest/coverage-v8": "^0.34.6",
"del-cli": "^5.1.0",
"fix-tsup-cjs": "^1.2.0",
"happy-dom": "^12.9.1",
"husky": "^8.0.3",
"is-ci-cli": "^2.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.0.3",
"repo-tools": "^0.2.2",
"size-limit": "^9.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"vitest": "^0.34.6"
},
"scripts": {
"build": "npm run clean && tsup && fix-tsup-cjs",
Expand All @@ -65,8 +64,8 @@
"lint": "eslint src test",
"test": "is-ci \"test:coverage\" \"test:watch\"",
"typecheck": "tsc",
"test:coverage": "jest --bail --coverage",
"test:watch": "jest --watchAll --verbose",
"test:coverage": "TZ=UTC vitest run --coverage",
"test:watch": "TZ=UTC vitest watch",
"format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
"validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size",
"size": "size-limit",
Expand Down
Loading

0 comments on commit 496baa4

Please sign in to comment.