chore: update vite and vitest

also make e2e timeouts longer
This commit is contained in:
Wout Mertens
2024-07-31 19:29:32 +02:00
committed by Shai Reznik
parent 99296ea762
commit 42880cf5f1
12 changed files with 303 additions and 715 deletions

View File

@@ -189,7 +189,7 @@ jobs:
with:
lookup-only: true
path: e2e-tests-completed.txt
key: ${{ hashfiles('others-key.txt', 'starters/e2e/**/*', 'starters/apps/e2e/**/*') }}
key: ${{ hashfiles('others-key.txt', 'starters/**/*') }}
############ BUILD Qwik ############
build-qwik:

View File

@@ -10,11 +10,14 @@
"syncpack": {
"versionGroups": [
{
"label": "Separate prod deps from dev deps",
"label": "Be lenient in vite versions for prod. v4 is broken, v5 is good",
"dependencyTypes": [
"prod",
"peer"
]
"prod"
],
"dependencies": [
"vite"
],
"pinVersion": "^5"
},
{
"label": "use workspace protocol for local packages and allow patch versions (used in e.g. qwik-react)",
@@ -36,6 +39,13 @@
"dev"
],
"pinVersion": "workspace:^"
},
{
"label": "Separate prod deps from dev deps",
"dependencyTypes": [
"prod",
"peer"
]
}
],
"semverGroups": [
@@ -149,11 +159,11 @@
"typescript": "5.4.5",
"undici": "*",
"vfile": "6.0.1",
"vite": "5.3.4",
"vite": "5.3.5",
"vite-imagetools": "7.0.4",
"vite-plugin-dts": "3.9.1",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0",
"vitest": "2.0.5",
"watchlist": "0.3.1",
"which-pm-runs": "1.1.0",
"zod": "3.22.4"

View File

@@ -52,7 +52,7 @@
"typescript": "5.4.5",
"undici": "*",
"valibot": "0.33.3",
"vite": "5.3.4",
"vite": "5.3.5",
"vite-plugin-inspect": "0.8.5",
"wrangler": "3.65.1"
},

View File

@@ -35,9 +35,9 @@
"tailwindcss": "3.4.6",
"typescript": "5.4.5",
"undici": "*",
"vite": "5.3.4",
"vite": "5.3.5",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
"vitest": "2.0.5"
},
"engines": {
"node": ">=16.8.0 <18.0.0 || >=18.11"

View File

@@ -4,15 +4,15 @@
"version": "1.7.3",
"bugs": "https://github.com/QwikDev/qwik/issues",
"dependencies": {
"@mdx-js/mdx": "^3.0.1",
"@types/mdx": "^2.0.13",
"@mdx-js/mdx": "^3",
"@types/mdx": "^2",
"source-map": "^0.7.4",
"svgo": "3.3.2",
"svgo": "^3.3",
"undici": "*",
"vfile": "6.0.1",
"vite": "5.3.4",
"vite-imagetools": "7.0.4",
"zod": "^3.22.4"
"vite": "^5",
"vite-imagetools": "^7",
"zod": "3.22.4"
},
"devDependencies": {
"@azure/functions": "3.5.1",

View File

@@ -14,7 +14,7 @@
"prettier": "3.3.3",
"typescript": "5.4.5",
"undici": "*",
"vite": "5.3.4"
"vite": "5.3.5"
},
"engines": {
"node": ">=16.8.0 <18.0.0 || >=18.11"

View File

@@ -10,7 +10,7 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"typescript": "5.4.5",
"vite": "5.3.4"
"vite": "5.3.5"
},
"engines": {
"node": ">=16.8.0 <18.0.0 || >=18.11"
@@ -35,11 +35,11 @@
"license": "MIT",
"main": "./lib/index.qwik.mjs",
"peerDependencies": {
"@builder.io/qwik": "1.7.3",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"react": "18.3.1",
"react-dom": "18.3.1"
"@builder.io/qwik": "workspace:^",
"@types/react": "^18",
"@types/react-dom": "^18",
"react": "^18",
"react-dom": "^18"
},
"qwik": "./lib/index.qwik.mjs",
"repository": {

View File

@@ -5,7 +5,7 @@
"bugs": "https://github.com/QwikDev/qwik/issues",
"devDependencies": {
"@builder.io/qwik": "workspace:^",
"vite": "5.3.4",
"vite": "5.3.5",
"vite-plugin-static-copy": "1.0.6"
},
"engines": {
@@ -24,7 +24,7 @@
"license": "MIT",
"main": "./lib/index.qwik.mjs",
"peerDependencies": {
"@builder.io/qwik": "1.7.3"
"@builder.io/qwik": "workspace:^"
},
"qwik": "./lib/index.qwik.mjs",
"repository": {

View File

@@ -25,8 +25,8 @@
}
],
"dependencies": {
"csstype": "^3.1.3",
"vite": "^5.2.10"
"csstype": "^3.1",
"vite": "^5"
},
"devDependencies": {
"@builder.io/qwik": "workspace:^",

946
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,8 @@
import { expect } from "@playwright/test";
import type { Locator, PlaywrightTestConfig } from "@playwright/test";
const inGithubCI = !!process.env.GITHUB_ACTIONS;
expect.extend({
async hasAttribute(recieved: Locator, attribute: string) {
const pass = await recieved.evaluate((node, attribute) => {
@@ -23,8 +25,8 @@ const config: PlaywrightTestConfig = {
},
},
testIgnore: /.*example.spec.tsx?$/,
retries: 3,
expect: { timeout: 10000 },
retries: inGithubCI ? 0 : 1,
expect: { timeout: inGithubCI ? 120000 : 10000 },
webServer: {
command: "pnpm tsm ./starters/dev-server.ts 3301",
port: 3301,

View File

@@ -6,6 +6,8 @@ export default defineConfig({
test: {
include: [
'packages/**/*.unit.?(c|m)[jt]s?(x)',
// Rust build cache
'!packages/qwik/**/target',
'!packages/qwik/dist',
'!packages/*/lib',
'!starters',