Skip to content

Commit 2eae3e5

Browse files
authored
chore: migrate from Jest to Vitest (#364)
1 parent 85e2e90 commit 2eae3e5

12 files changed

+5080
-8114
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = {
88
'plugin:react-hooks/recommended',
99
'plugin:cypress/recommended',
1010
],
11+
plugins: ['vitest-globals'],
1112
parserOptions: {
1213
ecmaVersion: 2020,
1314
sourceType: 'module',
@@ -21,7 +22,7 @@ module.exports = {
2122
browser: true,
2223
node: true,
2324
es6: true,
24-
jest: true,
25+
'vitest-globals/env': true,
2526
},
2627
rules: {
2728
'arrow-body-style': ['error', 'as-needed'],

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
7777

7878
- name: Run Tests
79-
run: npm run ci:test
79+
run: npm test
8080
e2e-tests:
8181
name: e2e Tests
8282
runs-on: ubuntu-latest

.lintstagedrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
'**/*.js': (files) => [
33
`eslint --quiet --fix ${files.join(' ')}`,
4-
`jest --passWithNoTests`,
4+
`vitest related --run`,
55
],
66
'**/*.{md,js,json,yml,html,css}': (files) => [
77
`prettier --write ${files.join(' ')}`,

ROADMAP.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ _Status: Ongoing ([#7](https://github.com/testing-library/testing-playground/iss
2222

2323
A [testing-playground.com] without tests... I don't think that should be a thing, but at this moment it is.
2424

25-
We should fix that, and use jest & testing-library to do it.
25+
We should fix that, and use Vitest & testing-library to do it.
2626

2727
## Usage instructions
2828

0 commit comments

Comments
 (0)