Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a30bd93

Browse files
committed
chore: migrate from Jest to Vitest
1 parent 93e7716 commit a30bd93

File tree

11 files changed

+5073
-8101
lines changed

11 files changed

+5073
-8101
lines changed

‎.eslintrc.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
'plugin:react-hooks/recommended',
88
'plugin:cypress/recommended',
99
],
10+
plugins: ['vitest-globals'],
1011
parserOptions: {
1112
ecmaVersion: 2020,
1213
sourceType: 'module',
@@ -20,7 +21,7 @@ module.exports = {
2021
browser: true,
2122
node: true,
2223
es6: true,
23-
jest: true,
24+
'vitest-globals/env': true,
2425
},
2526
rules: {
2627
'arrow-body-style': ['error', 'as-needed'],

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
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 --passWithNoTests`,
55
],
66
'**/*.{md,js,json,yml,html,css,pcss}': (files) => [
77
`prettier --write ${files.join(' ')}`,

‎ROADMAP.md‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /