Skip to content

Commit 39718ec

Browse files
committed
fix(cli): auto-enable RUN_E2E_TESTS when running e2e.mjs
When explicitly running node scripts/e2e.mjs with a flag (--sea, --smol, etc.), automatically set RUN_E2E_TESTS=1. Users shouldn't need to provide both a flag AND an environment variable - the flag is the opt-in. Before: RUN_E2E_TESTS=1 node scripts/e2e.mjs --sea After: node scripts/e2e.mjs --sea
1 parent c346752 commit 39718ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/cli/scripts/e2e.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ async function runVitest(binaryType) {
5151
{
5252
env: {
5353
...process.env,
54+
RUN_E2E_TESTS: '1', // Automatically enable tests when explicitly running e2e.mjs.
5455
...envVars,
5556
},
5657
stdio: 'inherit',

0 commit comments

Comments
 (0)