File tree Expand file tree Collapse file tree
e2e/solid-start/nitro-query Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "scripts" : {
77 "dev" : " vite dev --port 3000" ,
88 "dev:e2e" : " vite dev" ,
9- "build" : " vite build && tsc --noEmit" ,
10- "preview" : " vite preview" ,
11- "start" : " pnpx srvx --prod -s ../client dist/server/server.js" ,
129 "test:e2e" : " rm -rf port*.txt; playwright test --project=chromium"
1310 },
1411 "dependencies" : {
Original file line number Diff line number Diff line change @@ -5,18 +5,16 @@ import packageJson from './package.json' with { type: 'json' }
55const PORT = await getTestServerPort ( packageJson . name )
66const baseURL = `http://localhost:${ PORT } `
77
8- const mode = process . env . MODE ?? ' dev'
9- const isDev = mode === 'dev'
10-
8+ // #6151 only reproduces in dev — `@tanstack/solid-query` ships separate
9+ // development/production builds. Production builds use a single file, so the
10+ // dual-context bug can't manifest. This e2e is dev-only.
1111export default defineConfig ( {
1212 testDir : './tests' ,
1313 workers : 1 ,
1414 reporter : [ [ 'line' ] ] ,
1515 use : { baseURL } ,
1616 webServer : {
17- command : isDev
18- ? `PORT=${ PORT } pnpm dev:e2e`
19- : `pnpm build && PORT=${ PORT } pnpm start` ,
17+ command : `PORT=${ PORT } pnpm dev:e2e` ,
2018 url : baseURL ,
2119 reuseExistingServer : ! process . env . CI ,
2220 stdout : 'pipe' ,
You can’t perform that action at this time.
0 commit comments