-
Notifications
You must be signed in to change notification settings - Fork 206
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
Research swapping Webpack out for ESBuild #23565
Comments
ESbuild is running, but only a few tests are compiling. Below is a WIP list of specs with their errors
|
Baseline measurement Although I'm hitting build errors with most of the specs, the few specs that were able to build using ESbuild: less than 1 second |
I believe the source of the the When converting
to
The error goes away. |
I have about 80% of tests running. All specs that use
|
The component-driven/cypress-axe#86 The latest version 0.12.2 is supposed to fix this error, which we upgraded to two months, but it's still giving off the error using esbuild. Using this workaround works: |
Updated inventory of spec errors: 144 total tests
|
List of remaining tasks for esbuild swap:
|
In reference to the |
Status update: 103/144 tests passing. Remaining task list:
|
List of remaining tasks for esbuild swap: 132/146 tests passing
|
dropping this here for and https://github.com/evanw/esbuild/blob/master/internal/runtime/runtime.go fix released 1.5 weeks ago I updated esbuild version to 0.12.3 but still hitting the error |
Receiving the same src/applications/gi/tests/e2e/00-required.cypress.spec.js
error goes away if upgraded to |
@JoeTice @pjhill As it stands, I have 132 out of 144 specs run successfully. Here's the status of each one. Here's my WIP branch for reference Bellow is the the status of each spec. To get this running, Step 1.
Step 2. Step 3.
Step 4. Step 5. Cypress should now be using esbuild the preprocessor when specs are ran. Bellow is the the status of each spec.
The remaining errors and my guess on the issues: |
Work doneAttempted to recreate the changes with some modifications here: department-of-veterans-affairs/vets-website/pull/17621
Test failuresWhen run locally, 13 of 155 tests failed.
Observations and findings
ConclusionDropping this work for now given the number of issues and the amount of effort required to fix them all. esbuild and its ecosystem is also still evolving and hasn't yet reached v1.0.0. |
Description
💡 We might be able to shave some time off of Cypress tests by using an ES Build preprocessor instead of webpack.
https://github.com/bahmutov/cypress-esbuild-preprocessor
Tasks
vets-website
similarly - doneunexpected <
error messages being exhibited in some specs - 3 pointsinjectAxe reference
error messages being exhibited in some specs - 3 pointsThe following error originated from your test code, not from Cypress
error messages being exhibited in at least one spec - 3 pointsAcceptance Criteria
The text was updated successfully, but these errors were encountered: