Skip to content

chore: migrate from Jest to Vitest #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
'plugin:react-hooks/recommended',
'plugin:cypress/recommended',
],
plugins: ['vitest-globals'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
Expand All @@ -21,7 +22,7 @@ module.exports = {
browser: true,
node: true,
es6: true,
jest: true,
'vitest-globals/env': true,
},
rules: {
'arrow-body-style': ['error', 'as-needed'],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}

- name: Run Tests
run: npm run ci:test
run: npm test
e2e-tests:
name: e2e Tests
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
'**/*.js': (files) => [
`eslint --quiet --fix ${files.join(' ')}`,
`jest --passWithNoTests`,
`vitest related --run`,
],
'**/*.{md,js,json,yml,html,css}': (files) => [
`prettier --write ${files.join(' ')}`,
Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _Status: Ongoing ([#7](https://github.com/testing-library/testing-playground/iss

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

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

## Usage instructions

Expand Down
Loading