Skip to content

Commit

Permalink
test: change ct-vite projects to type: module (#34662)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Feb 6, 2025
1 parent 34d9d4f commit 8accb0a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
13 changes: 7 additions & 6 deletions tests/components/ct-react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@
"name": "ct-react-vite",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.6.1"
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.1.5"
},
"devDependencies": {
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^4.2.1",
"msw": "^2.3.0",
"typescript": "^5.2.2",
"vite": "^5.2.8"
"vite": "^6.1.0"
}
}
5 changes: 3 additions & 2 deletions tests/components/ct-react-vite/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/

import { defineConfig, devices } from '@playwright/experimental-ct-react';
import { resolve } from 'path';
import path from 'path';
import { fileURLToPath } from 'url';

export default defineConfig({
testDir: 'tests',
Expand All @@ -30,7 +31,7 @@ export default defineConfig({
},
resolve: {
alias: {
'@': resolve(__dirname, './src'),
'@': path.resolve(path.dirname(fileURLToPath(import.meta.url)), './src'),
}
}
}
Expand Down
11 changes: 6 additions & 5 deletions tests/components/ct-vue-vite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ct-vue-vite",
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand All @@ -12,10 +13,10 @@
"vue-router": "^4.1.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.0",
"@vue/tsconfig": "^0.5.1",
"typescript": "5.6.2",
"vite": "^5.2.8",
"vue-tsc": "^2.0.21"
"@vitejs/plugin-vue": "^5.2.1",
"@vue/tsconfig": "^0.7.0",
"typescript": "~5.7.2",
"vite": "^6.1.0",
"vue-tsc": "^2.2.0"
}
}
5 changes: 3 additions & 2 deletions tests/components/ct-vue-vite/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/

import { defineConfig, devices } from '@playwright/experimental-ct-vue';
import { resolve } from 'path';
import path from 'path';
import { fileURLToPath } from 'url';

export default defineConfig({
testDir: 'tests',
Expand All @@ -27,7 +28,7 @@ export default defineConfig({
ctViteConfig: {
resolve: {
alias: {
'@': resolve(__dirname, './src'),
'@': path.resolve(path.dirname(fileURLToPath(import.meta.url)), './src'),
}
}
}
Expand Down

0 comments on commit 8accb0a

Please sign in to comment.