Skip to content
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
70 changes: 34 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"stop": "lsof -ti :5173 -ti :5174 -ti :17273 2>/dev/null | xargs kill -9 2>/dev/null || true",
"build": "pnpm run build:core && VITE_APP_ID=peerly tsc -b && VITE_APP_ID=peerly vite build && pnpm run guard:bundle && pnpm run guard:size && pnpm run guard:preview",
"test": "pnpm run build:core && pnpm --filter @peerly/core test && VITE_APP_ID=peerly vitest run --maxWorkers=4 && pnpm run test:preview",
"test:preview": "node --test scripts/guard-preview.test.mjs",
"test:preview": "node --test 'scripts/*.test.mjs'",
"test:watch": "VITE_APP_ID=peerly vitest",
"test:workers": "pnpm run build:core && mkdir -p dist && vitest run -c vitest.workers.config.ts",
"test:e2e": "pnpm run build:core && VITE_APP_ID=peerly playwright test",
Expand All @@ -52,43 +52,41 @@
"build:preview": "pnpm run build:core && VITE_APP_ID=peerly tsc -b && VITE_APP_ID=peerly VITE_CONTENT_BACKEND=durable-objects vite build --outDir dist-preview && node scripts/guard-bundle.mjs dist-preview && peerly-check-vite-bundle dist-preview/assets 700000"
},
"dependencies": {
"@codefusion-cc/app-update": "^0.1.2",
"@codefusion-cc/console": "^0.32.0",
"@codefusion-cc/google-sign-in": "^0.1.2",
"@codefusion-cc/realtime": "^0.1.6",
"@codefusion-cc/realtime-media": "^0.1.5",
"@codefusion-cc/app-update": "0.1.2",
"@codefusion-cc/console": "0.34.0",
"@codefusion-cc/google-sign-in": "0.1.3",
"@codefusion-cc/realtime": "0.1.6",
"@codefusion-cc/realtime-media": "0.1.7",
"@peerly/core": "workspace:*",
"@tensorflow/tfjs": "^4.22.0",
"@trystero-p2p/core": "^0.25.3",
"@trystero-p2p/nostr": "^0.25.3",
"@trystero-p2p/supabase": "^0.25.3",
"nsfwjs": "^4.3.0",
"react": "^19.2.7",
"react-dom": "^19.2.7"
"@tensorflow/tfjs": "4.22.0",
"@trystero-p2p/core": "0.25.3",
"@trystero-p2p/nostr": "0.25.3",
"@trystero-p2p/supabase": "0.25.3",
"nsfwjs": "4.3.0",
"react": "19.3.0",
"react-dom": "19.3.0"
},
"devDependencies": {
"@axe-core/playwright": "^4.12.1",
"@cloudflare/vitest-plugin": "^1.3.4",
"@emnapi/core": "^1.11.2",
"@emnapi/runtime": "^1.11.2",
"@playwright/test": "^1.52.0",
"@stryker-mutator/core": "^10.0.0",
"@stryker-mutator/vitest-runner": "^10.0.0",
"@tailwindcss/vite": "^4.3.2",
"@testing-library/react": "^16.3.2",
"@types/node": "^24.13.2",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.3",
"@vitest/coverage-v8": "^4.1.11",
"daisyui": "^5.6.18",
"fast-check": "^4.10.2",
"jsdom": "^29.1.1",
"oxlint": "^1.71.0",
"tailwindcss": "^4.3.2",
"typescript": "~6.0.2",
"vite": "^8.1.1",
"vitest": "^4.1.11",
"wrangler": "^4.145.0"
"@axe-core/playwright": "4.12.1",
"@cloudflare/vitest-plugin": "1.4.4",
"@playwright/test": "1.63.0",
"@stryker-mutator/core": "10.0.0",
"@stryker-mutator/vitest-runner": "10.0.0",
"@tailwindcss/vite": "4.3.3",
"@testing-library/react": "16.3.3",
"@types/node": "24.19.0",
"@types/react": "19.3.0",
"@types/react-dom": "19.3.0",
"@vitejs/plugin-react": "6.0.3",
"@vitest/coverage-v8": "5.0.5",
"daisyui": "5.6.18",
"fast-check": "4.10.2",
"jsdom": "30.1.1",
"oxlint": "1.88.0",
"tailwindcss": "4.3.3",
"typescript": "7.0.2",
"vite": "8.3.1",
"vitest": "5.0.5",
"wrangler": "4.151.1"
}
}
30 changes: 15 additions & 15 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
"test:coverage": "vitest run --coverage --maxWorkers=4"
},
"dependencies": {
"@codefusion-cc/google-sign-in": "^0.1.2",
"@codefusion-cc/realtime": "^0.1.6",
"@codefusion-cc/realtime-media": "^0.1.5",
"@trystero-p2p/core": "^0.25.3",
"@trystero-p2p/nostr": "^0.25.3"
"@codefusion-cc/google-sign-in": "0.1.3",
"@codefusion-cc/realtime": "0.1.6",
"@codefusion-cc/realtime-media": "0.1.7",
"@trystero-p2p/core": "0.25.3",
"@trystero-p2p/nostr": "0.25.3"
},
"peerDependencies": {
"@trystero-p2p/supabase": "^0.25.3",
Expand All @@ -108,15 +108,15 @@
}
},
"devDependencies": {
"@testing-library/react": "^16.3.2",
"@trystero-p2p/supabase": "^0.25.3",
"@types/node": "^24.13.2",
"@vitest/coverage-v8": "^4.1.11",
"fast-check": "^4.10.2",
"jsdom": "^29.1.1",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"typescript": "~6.0.2",
"vitest": "^4.1.11"
"@testing-library/react": "16.3.3",
"@trystero-p2p/supabase": "0.25.3",
"@types/node": "24.19.0",
"@vitest/coverage-v8": "5.0.5",
"fast-check": "4.10.2",
"jsdom": "30.1.1",
"react": "19.3.0",
"react-dom": "19.3.0",
"typescript": "7.0.2",
"vitest": "5.0.5"
}
}
2 changes: 1 addition & 1 deletion packages/core/src/realtime/signaling.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ describe('a room whose scope restarts', () => {

it('stops for good when the room is left while a reopening waits on the control plane', async () => {
const room = await join(routedConfig)
let failConnect = (_: Error) => {}
let failConnect: (reason: Error) => void = () => {}
transport.connect.mockImplementation(() => new Promise((_, reject) => { failConnect = reject }))
sockets[0].drop()
await vi.advanceTimersByTimeAsync(1_000)
Expand Down
36 changes: 36 additions & 0 deletions patches/@stryker-mutator__vitest-runner@10.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
diff --git a/dist/src/stryker-setup.js b/dist/src/stryker-setup.js
index aecfacbe47b285c272c47e54b3d66a716adfdc41..ea7f56dcefb36ba663f7ce069380e1d4a92b92a3 100644
--- a/dist/src/stryker-setup.js
+++ b/dist/src/stryker-setup.js
@@ -56,7 +56,12 @@ else {
}
}
// Stryker disable all: this file is copied to the sandbox dir
-function collectTestName({ name, suite, }) {
+function collectTestName({ name, suite, fullTestName, }) {
+ // Vitest 5 matches testNamePattern against fullTestName, which joins the
+ // suite and test names with ' > '. Use it as the name when Vitest has it.
+ if (typeof fullTestName === 'string') {
+ return fullTestName;
+ }
const nameParts = [name];
let currentSuite = suite;
while (currentSuite) {
diff --git a/dist/src/test-helpers.js b/dist/src/test-helpers.js
index 56cc786f30c524ae18ce87eef1a67fdf26b703c5..726b8b65ef311bef7167e0fd7aa4c0b2c13f14d1 100644
--- a/dist/src/test-helpers.js
+++ b/dist/src/test-helpers.js
@@ -1,7 +1,12 @@
// Don't merge this file into 'vitest-helpers.ts'!
// This file is used from the testing environment (via stryker-setup.js) and thus could be loaded into the browser (when using vitest with browser mode).
// Thus we should avoid unnecessary dependencies in this file.
-export function collectTestName({ name, suite, }) {
+export function collectTestName({ name, suite, fullTestName, }) {
+ // Vitest 5 matches testNamePattern against fullTestName, which joins the
+ // suite and test names with ' > '. Use it as the name when Vitest has it.
+ if (typeof fullTestName === 'string') {
+ return fullTestName;
+ }
const nameParts = [name];
let currentSuite = suite;
while (currentSuite) {
Loading
Loading