Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 807840a

Browse files
committed
test: add CYPRESS_INTERNAL_E2E_TESTS var
1 parent c78ddc0 commit 807840a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/e2e/cypress.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ import snapshot from 'snap-shot-it'
33

44
describe('cypress - e2e', async () => {
55
it(`test: cypress integration`, async () => {
6+
const keepSameOutputForCiEnvVars = {
7+
NO_COLOR: '1',
8+
CYPRESS_INTERNAL_E2E_TESTS: '1',
9+
}
10+
611
const result = spawnSync('npx', ['cypress', 'run'], {
712
encoding: 'utf8',
813
env: {
914
...process.env,
10-
NO_COLOR: '1',
15+
...keepSameOutputForCiEnvVars,
1116
},
1217
})
1318
const output = sanitizeOutput(result.stdout.toString())

0 commit comments

Comments
 (0)