Skip to content

fix: ensure e2e tests don't run against prod#250

Merged
edezekiel merged 3 commits into
mainfrom
ee/e2e-test-process-env
Jun 6, 2025
Merged

fix: ensure e2e tests don't run against prod#250
edezekiel merged 3 commits into
mainfrom
ee/e2e-test-process-env

Conversation

@edezekiel
Copy link
Copy Markdown
Contributor

@edezekiel edezekiel commented Jun 6, 2025

Previously, the e2e tests were being run against prod. This was not the intention. Process env variables were set in multiple places:

  • bin/run.js
  • bin/dev.js
  • eol.test.ts
  • src/config/constants.ts

This allowed for the config and the process.env vars to get out of sync, which caused unexpected results for the value of those vars during e2e tests.

This commit consolidates to the config as the source of truth for env vars. I've deleted the attempts to set env vars everywhere else.

For convenience, I've added a .envrc.example file showing how to set development vars. You can use direnv allow to load vars in a .envrc file.[1]

Skipping extra-large fixture e2e test

Recent changes to the api is causing the e2e test to be flaky. The api team is aware and working towards a resolution. Until then, I'm skipping the e2e spec involving that fixture.

[1]https://github.com/direnv/direnv/tree/master

Previously, the e2e tests were being run against prod. This was not the
intention. Process env variables were set in multiple places:
- bin/run.js
- bin/dev.js
- eol.test.ts
- src/config/constants.ts

This allowed for the `config` and the `process.env` vars to get out
of sync, which caused unexpected results for the value of those vars
during e2e tests.

This commit consolidates to the `config` as the source of truth for
env vars. I've deleted the attempts to set env vars everywhere else.

For convenience, I've added a `.envrc.example` file showing how to set
development vars. You can use `direnv allow` to load vars in a .envrc
file.[1]

[1]https://github.com/direnv/direnv/tree/master
@edezekiel edezekiel requested a review from a team as a code owner June 6, 2025 15:17
@edezekiel edezekiel merged commit 285f5bf into main Jun 6, 2025
12 checks passed
@edezekiel edezekiel deleted the ee/e2e-test-process-env branch June 6, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants