Skip to content

Commit

Permalink
fix(vite): vitest versions alignment (#20215)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Nov 13, 2023
1 parent 059b061 commit 3496380
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
4 changes: 4 additions & 0 deletions packages/vite/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
},
"packageJsonUpdates": {
"17.2.0": {
"vitest": {
"version": "~0.34.6",
"alwaysAddToPackageJson": false
},
"@vitest/coverage-v8": {
"version": "~0.34.6",
"alwaysAddToPackageJson": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ exports[`@nx/vite:init dependencies for package.json should add vite packages an
"@swc-node/register": "~1.6.7",
"@swc/core": "~1.3.85",
"@vitejs/plugin-react": "~4.0.0",
"@vitest/ui": "~0.32.0",
"@vitest/ui": "~0.34.6",
"existing": "1.0.0",
"prettier": "^2.6.2",
"typescript": "~5.2.2",
"vite": "~4.3.9",
"vitest": "~0.32.0",
"vitest": "~0.34.6",
},
"name": "@proj/source",
}
Expand All @@ -31,11 +31,11 @@ exports[`@nx/vite:init dependencies for package.json should support --testEnviro
"@nx/vite": "0.0.1",
"@swc-node/register": "~1.6.7",
"@swc/core": "~1.3.85",
"@vitest/ui": "~0.32.0",
"@vitest/ui": "~0.34.6",
"prettier": "^2.6.2",
"typescript": "~5.2.2",
"vite": "~4.3.9",
"vitest": "~0.32.0",
"vitest": "~0.34.6",
},
"name": "@proj/source",
}
Expand All @@ -49,12 +49,12 @@ exports[`@nx/vite:init dependencies for package.json should support --testEnviro
"@nx/vite": "0.0.1",
"@swc-node/register": "~1.6.7",
"@swc/core": "~1.3.85",
"@vitest/ui": "~0.32.0",
"@vitest/ui": "~0.34.6",
"happy-dom": "~9.20.3",
"prettier": "^2.6.2",
"typescript": "~5.2.2",
"vite": "~4.3.9",
"vitest": "~0.32.0",
"vitest": "~0.34.6",
},
"name": "@proj/source",
}
Expand All @@ -68,12 +68,12 @@ exports[`@nx/vite:init dependencies for package.json should support --testEnviro
"@nx/vite": "0.0.1",
"@swc-node/register": "~1.6.7",
"@swc/core": "~1.3.85",
"@vitest/ui": "~0.32.0",
"@vitest/ui": "~0.34.6",
"jsdom": "~22.1.0",
"prettier": "^2.6.2",
"typescript": "~5.2.2",
"vite": "~4.3.9",
"vitest": "~0.32.0",
"vitest": "~0.34.6",
},
"name": "@proj/source",
}
Expand Down
1 change: 0 additions & 1 deletion packages/vite/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
vitePluginDtsVersion,
vitePluginReactSwcVersion,
vitePluginReactVersion,
vitestUiVersion,
vitestVersion,
viteVersion,
} from '../../utils/versions';
Expand Down
7 changes: 3 additions & 4 deletions packages/vite/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const nxVersion = require('../../package.json').version;
export const viteVersion = '~4.3.9';
export const vitestVersion = '~0.32.0';
export const vitestUiVersion = '~0.32.0';
export const vitestVersion = '~0.34.6';
export const vitePluginReactVersion = '~4.0.0';
export const vitePluginReactSwcVersion = '~3.3.2';
export const jsdomVersion = '~22.1.0';
Expand All @@ -10,5 +9,5 @@ export const happyDomVersion = '~9.20.3';
export const edgeRuntimeVmVersion = '~3.0.2';

// Coverage providers
export const vitestCoverageV8Version = '~0.32.0';
export const vitestCoverageIstanbulVersion = '~0.32.0';
export const vitestCoverageV8Version = '~0.34.6';
export const vitestCoverageIstanbulVersion = '~0.34.6';
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ exports[`lib should add vue, vite and vitest to package.json 1`] = `
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@vitejs/plugin-vue": "^4.3.1",
"@vitest/coverage-v8": "~0.32.0",
"@vitest/ui": "~0.32.0",
"@vitest/coverage-v8": "~0.34.6",
"@vitest/ui": "~0.34.6",
"@vue/eslint-config-prettier": "7.1.0",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/test-utils": "^2.4.1",
Expand All @@ -114,7 +114,7 @@ exports[`lib should add vue, vite and vitest to package.json 1`] = `
"prettier": "^2.6.2",
"typescript": "~5.2.2",
"vite": "~4.3.9",
"vitest": "~0.32.0",
"vitest": "~0.34.6",
"vue-tsc": "^1.8.8",
},
"name": "@proj/source",
Expand Down

0 comments on commit 3496380

Please sign in to comment.