Skip to content

Commit 40f32cc

Browse files
committed
Merge branch 'develop' into cg-JS-1207
2 parents 960dcd1 + cf5c4ba commit 40f32cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1494
-837
lines changed

dev-packages/e2e-tests/test-applications/nuxt-3/tests/middleware.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ test.describe('Server Middleware Instrumentation', () => {
121121
type: 'Error',
122122
mechanism: expect.objectContaining({
123123
handled: false,
124-
type: 'auto.middleware.nuxt',
124+
// Type changes depending on whether it is being wrapped by Nitro or not
125+
// This is a timing problem, sometimes Nitro can capture the error first, and sometimes it can't
126+
// If nitro captures the error first, the type will be 'chained'
127+
// If Sentry captures the error first, the type will be 'auto.middleware.nuxt'
128+
type: expect.stringMatching(/^(auto\.middleware\.nuxt|chained)$/),
125129
}),
126130
}),
127131
);

dev-packages/e2e-tests/test-applications/solidstart-dynamic-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@playwright/test": "~1.53.2",
1919
"@sentry-internal/test-utils": "link:../../../test-utils",
2020
"@solidjs/meta": "^0.29.4",
21-
"@solidjs/router": "^0.13.4",
21+
"@solidjs/router": "^0.15.0",
2222
"@solidjs/start": "^1.0.2",
2323
"@solidjs/testing-library": "^0.8.7",
2424
"@testing-library/jest-dom": "^6.4.2",

dev-packages/e2e-tests/test-applications/solidstart-spa/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@playwright/test": "~1.53.2",
1919
"@sentry-internal/test-utils": "link:../../../test-utils",
2020
"@solidjs/meta": "^0.29.4",
21-
"@solidjs/router": "^0.13.4",
21+
"@solidjs/router": "^0.15.0",
2222
"@solidjs/start": "^1.0.2",
2323
"@solidjs/testing-library": "^0.8.7",
2424
"@testing-library/jest-dom": "^6.4.2",

dev-packages/e2e-tests/test-applications/solidstart-top-level-import/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@playwright/test": "~1.53.2",
1919
"@sentry-internal/test-utils": "link:../../../test-utils",
2020
"@solidjs/meta": "^0.29.4",
21-
"@solidjs/router": "^0.13.4",
21+
"@solidjs/router": "^0.15.0",
2222
"@solidjs/start": "^1.0.2",
2323
"@solidjs/testing-library": "^0.8.7",
2424
"@testing-library/jest-dom": "^6.4.2",

dev-packages/e2e-tests/test-applications/solidstart/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@playwright/test": "~1.53.2",
1919
"@sentry-internal/test-utils": "link:../../../test-utils",
2020
"@solidjs/meta": "^0.29.4",
21-
"@solidjs/router": "^0.13.4",
21+
"@solidjs/router": "^0.15.0",
2222
"@solidjs/start": "^1.0.2",
2323
"@solidjs/testing-library": "^0.8.7",
2424
"@testing-library/jest-dom": "^6.4.2",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@sentry:registry=http://127.0.0.1:4873
2+
@sentry-internal:registry=http://127.0.0.1:4873
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as Sentry from '@sentry/tanstackstart-react';
2+
3+
Sentry.init({
4+
environment: 'qa', // dynamic sampling bias to keep transactions
5+
dsn: process.env.E2E_TEST_DSN,
6+
tunnel: `http://localhost:3031/`, // proxy server
7+
tracesSampleRate: 1,
8+
transportOptions: {
9+
// We expect the app to send a lot of events in a short time
10+
bufferSize: 1000,
11+
},
12+
});
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "tanstackstart-react",
3+
"private": true,
4+
"version": "0.0.1",
5+
"type": "module",
6+
"scripts": {
7+
"build": "vite build && cp instrument.server.mjs .output/server",
8+
"start": "node --import ./.output/server/instrument.server.mjs .output/server/index.mjs",
9+
"test": "playwright test",
10+
"clean": "npx rimraf node_modules pnpm-lock.yaml",
11+
"test:build": "pnpm install && pnpm build",
12+
"test:assert": "pnpm test"
13+
},
14+
"dependencies": {
15+
"@sentry/tanstackstart-react": "latest || *",
16+
"@tanstack/react-start": "^1.139.12",
17+
"@tanstack/react-router": "^1.139.12",
18+
"react": "^19.2.0",
19+
"react-dom": "^19.2.0"
20+
},
21+
"devDependencies": {
22+
"@types/react": "^19.2.0",
23+
"@types/react-dom": "^19.2.0",
24+
"@types/node": "^24.10.0",
25+
"@typescript-eslint/eslint-plugin": "^7.2.0",
26+
"@typescript-eslint/parser": "^7.2.0",
27+
"@vitejs/plugin-react-swc": "^3.5.0",
28+
"typescript": "^5.9.0",
29+
"vite": "7.2.0",
30+
"vite-tsconfig-paths": "^5.1.4",
31+
"nitro": "^3.0.0",
32+
"@playwright/test": "~1.53.2",
33+
"@sentry-internal/test-utils": "link:../../../test-utils"
34+
},
35+
"volta": {
36+
"extends": "../../package.json"
37+
}
38+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { getPlaywrightConfig } from '@sentry-internal/test-utils';
2+
3+
const config = getPlaywrightConfig({
4+
startCommand: `pnpm start`,
5+
port: 3000,
6+
});
7+
8+
export default config;

0 commit comments

Comments
 (0)