Skip to content

Commit

Permalink
Upgrade to Vitest 3.0.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 10, 2025
1 parent 161a29c commit 61996e1
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 95 deletions.
6 changes: 3 additions & 3 deletions code/addons/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
"@types/istanbul-lib-report": "^3.0.3",
"@types/node": "^22.0.0",
"@types/semver": "^7",
"@vitest/browser": "^3.0.0-beta.3",
"@vitest/runner": "^3.0.0-beta.3",
"@vitest/browser": "3.0.0-beta.4",
"@vitest/runner": "3.0.0-beta.4",
"ansi-to-html": "^0.7.2",
"boxen": "^8.0.1",
"es-toolkit": "^1.22.0",
Expand All @@ -115,7 +115,7 @@
"tree-kill": "^1.2.2",
"ts-dedent": "^2.2.0",
"typescript": "^5.3.2",
"vitest": "^3.0.0-beta.3"
"vitest": "3.0.0-beta.4"
},
"peerDependencies": {
"@vitest/browser": "^2.1.1 || ^3.0.0",
Expand Down
6 changes: 2 additions & 4 deletions code/addons/test/src/vitest-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,12 @@ export const storybookTest = async (options?: UserOptions): Promise<Plugin> => {
optimizeDeps: {
include: [
'@storybook/experimental-addon-test/**',
'@storybook/addon-a11y/**',
'@testing-library/jest-dom/vitest',
...(isAddonA11yAvailable() ? ['@storybook/addon-a11y'] : []),

...(frameworkName?.includes('react') || frameworkName?.includes('nextjs')
? ['react-dom/test-utils', 'prop-types', 'react-dom/client']
? ['react-dom/test-utils']
: []),
],
entries: storiesFiles.filter((path) => !path.endsWith('.mdx')),
},

define: {
Expand Down
8 changes: 4 additions & 4 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@
"@typescript-eslint/parser": "7.18.0",
"@vitejs/plugin-react": "^4.3.2",
"@vitejs/plugin-vue": "^4.4.0",
"@vitest/browser": "^3.0.0-beta.3",
"@vitest/coverage-istanbul": "^3.0.0-beta.3",
"@vitest/coverage-v8": "^3.0.0-beta.3",
"@vitest/browser": "3.0.0-beta.4",
"@vitest/coverage-istanbul": "3.0.0-beta.4",
"@vitest/coverage-v8": "3.0.0-beta.4",
"create-storybook": "workspace:*",
"cross-env": "^7.0.3",
"danger": "^12.3.3",
Expand Down Expand Up @@ -222,7 +222,7 @@
"util": "^0.12.4",
"vite": "^4.0.0",
"vite-plugin-inspect": "^0.8.5",
"vitest": "^3.0.0-beta.3",
"vitest": "3.0.0-beta.4",
"wait-on": "^7.0.1"
},
"dependenciesMeta": {
Expand Down
Loading

0 comments on commit 61996e1

Please sign in to comment.