Skip to content

Commit 2e378a5

Browse files
committed
Make bundler system tests a little quicker / more resilient
1 parent e7f3070 commit 2e378a5

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

npm/vite-dev-server-fresh/cypress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export default defineConfig({
1919
return await e2ePluginSetup(on, config)
2020
},
2121
},
22+
retries: {
23+
runMode: 2,
24+
},
2225
// @ts-ignore We are setting these namespaces in order to properly test Cypress in Cypress
2326
clientRoute: '/__app/',
2427
namespace: '__cypress-app',

npm/webpack-dev-server-fresh/cypress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export default defineConfig({
1717
return await e2ePluginSetup(on, config)
1818
},
1919
},
20+
retries: {
21+
runMode: 2,
22+
},
2023
// @ts-ignore We are setting these namespaces in order to properly test Cypress in Cypress
2124
clientRoute: '/__app/',
2225
namespace: '__cypress-app',

system-tests/project-fixtures/cra/cypress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ export default defineConfig({
77
bundler: 'webpack',
88
},
99
},
10+
// These tests should run quickly / fail quickly,
11+
// since we intentionally causing error states for testing
12+
defaultCommandTimeout: 1000
1013
})

system-tests/project-fixtures/nuxtjs2/cypress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ export default defineConfig({
1515
}
1616
},
1717
},
18+
// These tests should run quickly / fail quickly,
19+
// since we intentionally causing error states for testing
20+
defaultCommandTimeout: 1000
1821
})

system-tests/project-fixtures/react/cypress-vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ export default defineConfig({
2020
},
2121
},
2222
},
23+
// These tests should run quickly / fail quickly,
24+
// since we intentionally causing error states for testing
25+
defaultCommandTimeout: 1000
2326
})

system-tests/project-fixtures/react/cypress-webpack.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ module.exports = defineConfig({
2323
},
2424
},
2525
},
26+
// These tests should run quickly / fail quickly,
27+
// since we intentionally causing error states for testing
28+
defaultCommandTimeout: 1000
2629
})

system-tests/project-fixtures/vue-cli/cypress.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ export default defineConfig({
77
bundler: 'webpack'
88
}
99
},
10+
// These tests should run quickly / fail quickly,
11+
// since we intentionally causing error states for testing
12+
defaultCommandTimeout: 1000
1013
})

system-tests/project-fixtures/vue2-cli/cypress.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ module.exports = {
55
bundler: 'webpack'
66
}
77
},
8+
// These tests should run quickly / fail quickly,
9+
// since we intentionally causing error states for testing
10+
defaultCommandTimeout: 1000
811
}

0 commit comments

Comments
 (0)