File tree Expand file tree Collapse file tree 8 files changed +66
-12
lines changed
dynamic-remotes-runtime-environment-variables
dynamic-remotes-synchronous-imports Expand file tree Collapse file tree 8 files changed +66
-12
lines changed Original file line number Diff line number Diff line change 1414 "clean" : " pnpm --filter automatic-vendor-sharing_app* --parallel clean" ,
1515 "legacy:start" : " pnpm --filter automatic-vendor-sharing_app* --parallel legacy:start" ,
1616 "legacy:build" : " pnpm --filter automatic-vendor-sharing_app* --parallel legacy:build" ,
17- "e2e:ci" : " pnpm start & wait-on http-get://localhost:3001/ http-get://localhost:3002/ && npx playwright test" ,
17+ "e2e:ci" : " npx playwright test" ,
1818 "legacy:e2e:ci" : " pnpm legacy:start & wait-on http-get://localhost:3001/ http-get://localhost:3002/ && npx playwright test"
1919 },
2020 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -29,6 +29,18 @@ export default defineConfig({
2929 } ,
3030 ] ,
3131
32- // webServer configuration removed - servers are started manually in package.json scripts
33- // This ensures better compatibility with CI environments and matches the original Cypress approach
32+ webServer : [
33+ {
34+ command : 'pnpm --filter automatic-vendor-sharing_app1 start' ,
35+ port : 3001 ,
36+ reuseExistingServer : ! process . env . CI ,
37+ timeout : 120000 ,
38+ } ,
39+ {
40+ command : 'pnpm --filter automatic-vendor-sharing_app2 start' ,
41+ port : 3002 ,
42+ reuseExistingServer : ! process . env . CI ,
43+ timeout : 120000 ,
44+ } ,
45+ ] ,
3446} ) ;
Original file line number Diff line number Diff line change 1515 "docker:build" : " pnpm --filter dynamic-remotes-runtime-environment-variables_* --parallel docker:build" ,
1616 "docker:run" : " pnpm --filter dynamic-remotes-runtime-environment-variables_* --parallel docker:run" ,
1717 "docker:rm" : " pnpm --filter dynamic-remotes-runtime-environment-variables_* --parallel docker:rm" ,
18- "e2e:ci" : " pnpm start & wait-on http-get://localhost:3000/ http-get://localhost:3001/ && npx playwright test" ,
18+ "e2e:ci" : " npx playwright test" ,
1919 "legacy:e2e:ci" : " pnpm legacy:start & wait-on http-get://localhost:3000/ http-get://localhost:3001/ && npx playwright test"
2020 },
2121 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -29,6 +29,18 @@ export default defineConfig({
2929 } ,
3030 ] ,
3131
32- // webServer configuration removed - servers are started manually in package.json scripts
33- // This ensures better compatibility with CI environments and matches the original Cypress approach
32+ webServer : [
33+ {
34+ command : 'pnpm --filter dynamic-remotes-runtime-environment-variables_host start' ,
35+ port : 3000 ,
36+ reuseExistingServer : ! process . env . CI ,
37+ timeout : 120000 ,
38+ } ,
39+ {
40+ command : 'pnpm --filter dynamic-remotes-runtime-environment-variables_remote start' ,
41+ port : 3001 ,
42+ reuseExistingServer : ! process . env . CI ,
43+ timeout : 120000 ,
44+ } ,
45+ ] ,
3446} ) ;
Original file line number Diff line number Diff line change 1111 "build" : " pnpm --filter dynamic-remotes-synchronous-imports_app* --parallel build" ,
1212 "serve" : " pnpm --filter dynamic-remotes-synchronous-imports_app* --parallel serve" ,
1313 "clean" : " pnpm --filter dynamic-remotes-synchronous-imports_app* --parallel clean" ,
14- "e2e:ci" : " pnpm start & wait-on http-get://localhost:3001/ http-get://localhost:3002/ && pnpm exec playwright test"
14+ "e2e:ci" : " npx playwright test"
1515 },
1616 "devDependencies" : {
1717 "@playwright/test" : " ^1.54.2" ,
Original file line number Diff line number Diff line change @@ -29,6 +29,18 @@ export default defineConfig({
2929 } ,
3030 ] ,
3131
32- // webServer configuration removed - servers are started manually in package.json scripts
33- // This ensures better compatibility with CI environments and matches the original Cypress approach
32+ webServer : [
33+ {
34+ command : 'pnpm --filter dynamic-remotes-synchronous-imports_app1 start' ,
35+ port : 3001 ,
36+ reuseExistingServer : ! process . env . CI ,
37+ timeout : 120000 ,
38+ } ,
39+ {
40+ command : 'pnpm --filter dynamic-remotes-synchronous-imports_app2 start' ,
41+ port : 3002 ,
42+ reuseExistingServer : ! process . env . CI ,
43+ timeout : 120000 ,
44+ } ,
45+ ] ,
3446} ) ;
Original file line number Diff line number Diff line change 1717 "test:e2e" : " npx playwright test" ,
1818 "test:e2e:ui" : " npx playwright test --ui" ,
1919 "test:e2e:debug" : " npx playwright test --debug" ,
20- "e2e:ci" : " pnpm start & sleep 5 && wait-on tcp:3001 tcp:3002 tcp:3003 && npx playwright test --reporter=list; kill $(jobs -p) 2>/dev/null || true " ,
20+ "e2e:ci" : " npx playwright test --reporter=list" ,
2121 "legacy:e2e:ci" : " pnpm legacy:start & sleep 5 && wait-on tcp:3001 tcp:3002 tcp:3003 && LEGACY_MODE=true npx playwright test --reporter=list; kill $(jobs -p) 2>/dev/null || true"
2222 },
2323 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -29,6 +29,24 @@ export default defineConfig({
2929 } ,
3030 ] ,
3131
32- // webServer configuration removed - servers are started manually in package.json scripts
33- // This ensures better compatibility with CI environments and matches the original Cypress approach
32+ webServer : [
33+ {
34+ command : 'pnpm --filter dynamic-remotes_app1 start' ,
35+ port : 3001 ,
36+ reuseExistingServer : ! process . env . CI ,
37+ timeout : 120000 ,
38+ } ,
39+ {
40+ command : 'pnpm --filter dynamic-remotes_app2 start' ,
41+ port : 3002 ,
42+ reuseExistingServer : ! process . env . CI ,
43+ timeout : 120000 ,
44+ } ,
45+ {
46+ command : 'pnpm --filter dynamic-remotes_app3 start' ,
47+ port : 3003 ,
48+ reuseExistingServer : ! process . env . CI ,
49+ timeout : 120000 ,
50+ } ,
51+ ] ,
3452} ) ;
You can’t perform that action at this time.
0 commit comments