Use production
build for frontend integration tests
#22831
Labels
frontend-platform
Issues related to our frontend platform, owned collectively by our frontend crew.
gitstart
Contract partner
testing
Issues that deal with unit tests, integration tests and the testing infrastructure.
Problem statement
Currently, we use a development build to run our integration tests. It's beneficial for performance, but the way the application is loaded is different from what we have in the production environment: CSS is not extracted in a separate file, and many third-party library production optimizations are not applied.
Without code minimization, the build time won't change significantly, but we will be able to test our UI in an environment consistent with our production deployments.
Success criteria
It's possible to run integration tests on top of the production build of the web application.
Implementation details
sourcegraph/client/web/src/integration/context.ts
Line 66 in 573a8bb
NODE_ENV
env variables to determine the type of build we want to use to run the integration testsTime estimate
The text was updated successfully, but these errors were encountered: