Skip to content

Commit

Permalink
chore: migrate jest to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
geekact committed Dec 24, 2022
1 parent d4ea75d commit c1b59eb
Show file tree
Hide file tree
Showing 17 changed files with 618 additions and 1,581 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![npm peer react version](https://img.shields.io/npm/dependency-version/foca/peer/react?logo=react)](https://github.com/facebook/react)
[![npm peer typescript version](https://img.shields.io/npm/dependency-version/foca/peer/typescript?logo=typescript)](https://github.com/microsoft/TypeScript)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/foca-js/foca/test.yml?branch=master&label=test&logo=jest)](https://github.com/foca-js/foca/actions)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/foca-js/foca/test.yml?branch=master&label=test&logo=vitest)](https://github.com/foca-js/foca/actions)
[![Codecov](https://img.shields.io/codecov/c/github/foca-js/foca?logo=codecov)](https://codecov.io/gh/foca-js/foca)
[![npm](https://img.shields.io/npm/v/foca?logo=npm)](https://www.npmjs.com/package/foca)
[![npm](https://img.shields.io/npm/dt/foca?logo=codeforces)](https://www.npmjs.com/package/foca)
Expand Down
2 changes: 1 addition & 1 deletion docs/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![npm peer react version](https://img.shields.io/npm/dependency-version/foca/peer/react?logo=react)](https://github.com/facebook/react)
[![npm peer typescript version](https://img.shields.io/npm/dependency-version/foca/peer/typescript?logo=typescript)](https://github.com/microsoft/TypeScript)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/foca-js/foca/test.yml?branch=master&label=test&logo=jest)](https://github.com/foca-js/foca/actions)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/foca-js/foca/test.yml?branch=master&label=test&logo=vitest)](https://github.com/foca-js/foca/actions)
[![Codecov](https://img.shields.io/codecov/c/github/foca-js/foca?logo=codecov)](https://codecov.io/gh/foca-js/foca)
[![npm](https://img.shields.io/npm/v/foca?logo=npm)](https://www.npmjs.com/package/foca)
[![npm](https://img.shields.io/npm/dt/foca?logo=codeforces)](https://www.npmjs.com/package/foca)
Expand Down
10 changes: 0 additions & 10 deletions jest.config.js

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
"test": "jest --runInBand",
"test": "vitest run",
"prepublishOnly": "tsup",
"docs": "docsify serve ./docs",
"prepare": "husky install"
Expand Down Expand Up @@ -72,24 +72,23 @@
"@redux-devtools/extension": "^3.2.3",
"@swc/core": "^1.3.20",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@vitest/coverage-c8": "^0.26.0",
"browserslist": "^4.21.4",
"docsify-cli": "^4.4.4",
"husky": "^8.0.2",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jsdom": "^20.0.3",
"prettier": "^2.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"rxjs": "^7.5.7",
"sleep-promise": "^9.1.0",
"ts-expect": "^1.3.0",
"ts-jest": "^29.0.3",
"tsup": "^6.5.0",
"typescript": "^4.9.3"
"typescript": "^4.9.3",
"vitest": "^0.26.0"
}
}
Loading

0 comments on commit c1b59eb

Please sign in to comment.