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

Commit c78ddc0

Browse files
committed
test: remove colors from snapshots
1 parent 933d09f commit c78ddc0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/e2e/cypress.spec.ts

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

44
describe('cypress - e2e', async () => {
55
it(`test: cypress integration`, async () => {
6-
const result = spawnSync('npx', ['cypress', 'run'], { encoding: 'utf8' })
6+
const result = spawnSync('npx', ['cypress', 'run'], {
7+
encoding: 'utf8',
8+
env: {
9+
...process.env,
10+
NO_COLOR: '1',
11+
},
12+
})
713
const output = sanitizeOutput(result.stdout.toString())
814

915
snapshot(output)

0 commit comments

Comments
 (0)