Skip to content
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

chore: Vitest config tweaks #3222

Merged
merged 4 commits into from
Sep 20, 2024
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
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"plugin:storybook/recommended",
"plugin:tailwindcss/recommended"
],
"plugins": ["@vitest"],
"globals": {
"vi": true
},
"ignorePatterns": [
"!src/**/*.{js,jsx,ts,tsx}",
"src/old_ui/Icon/svg/*.jsx",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-istanbul": "^2.1.1",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/eslint-plugin": "^1.1.4",
"@vitest/ui": "^2.1.1",
"autoprefixer": "^10.4.14",
"eslint": "^8.39.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import userEvent from '@testing-library/user-event'
import { graphql, HttpResponse } from 'msw2'
import { setupServer } from 'msw2/node'
import { MemoryRouter, Route, Switch } from 'react-router-dom'
import { vi } from 'vitest'

import InstallationHelpBanner from './InstallationHelpBanner'

Expand Down
1 change: 0 additions & 1 deletion src/layouts/Footer/Footer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { render, screen } from '@testing-library/react'
import { MemoryRouter, Route } from 'react-router-dom'
import { vi } from 'vitest'

import config from 'config'

Expand Down
1 change: 0 additions & 1 deletion src/old_ui/Message/Message.test.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { render, screen } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { vi } from 'vitest'

import Message from '.'

Expand Down
1 change: 0 additions & 1 deletion src/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as matchers from '@testing-library/jest-dom/matchers'
import { cleanup } from '@testing-library/react'
import { vi } from 'vitest'
import '@testing-library/jest-dom/vitest'

// not sure why this lint is being fired here so I'm disabling it
Expand Down
20 changes: 20 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6871,6 +6871,25 @@ __metadata:
languageName: node
linkType: hard

"@vitest/eslint-plugin@npm:^1.1.4":
version: 1.1.4
resolution: "@vitest/eslint-plugin@npm:1.1.4"
peerDependencies:
"@typescript-eslint/utils": ">= 8.0"
eslint: ">= 8.57.0"
typescript: ">= 5.0.0"
vitest: "*"
peerDependenciesMeta:
"@typescript-eslint/utils":
optional: true
typescript:
optional: true
vitest:
optional: true
checksum: 10c0/e1de76593acefa063498081978746750fcd4906f9de31a463e7675b98d44b0e600c1b9d54d1873f6c01efcf2230184f414d3a4e9a7933e7105ae60c0ea18591c
languageName: node
linkType: hard

"@vitest/expect@npm:2.1.1":
version: 2.1.1
resolution: "@vitest/expect@npm:2.1.1"
Expand Down Expand Up @@ -11736,6 +11755,7 @@ __metadata:
"@vitejs/plugin-react": "npm:^4.3.1"
"@vitest/coverage-istanbul": "npm:^2.1.1"
"@vitest/coverage-v8": "npm:^2.1.1"
"@vitest/eslint-plugin": "npm:^1.1.4"
"@vitest/ui": "npm:^2.1.1"
autoprefixer: "npm:^10.4.14"
classnames: "npm:^2.3.1"
Expand Down
Loading