-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing perf improvements for e2e tests #4354
Conversation
|
1178ca5
to
44bd785
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YES. Extremely approved.
@@ -18,7 +18,7 @@ export function testFactory(inlineConfig) { | |||
|
|||
const test = testBase.extend({ | |||
astro: async ({}, use) => { | |||
fixture = await loadFixture(inlineConfig); | |||
fixture = fixture || await loadFixture(inlineConfig); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's it? Amazing!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the one! Test suites using beforeAll
for firing up the dev server also helps speed up suites a bit
Changes
Fixes a bug that was causing E2E tests to restart the dev server for every single test case
Future improvements - synchronization on HMR tests seem to be flaky on Windows, need to investigate what could be breaking the
editFile
synchronization only for Windows testsTesting
All existing tests should pass...faster
Docs
Test updates only