Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
[cypress] Disable debug colors within Cypress integration tests
Browse files Browse the repository at this point in the history
The `debug` library only prints timestamped output when terminal colors
are disabled. We disable colors here so that we can better understand the
timing of failed test runs. Note that DEBUG_COLORS is still enabled for
the Jest tests that invoke the Cypress plugin integration tests, since
GitHub Actions lets us show timestamps for each line of that output even
if colors are enabled. However, output from individual test cases is
buffered and printed all at once in the event of a test failure, so the
buffered output needs to include timestamps if we want to understand
the timing within a single Cypress invocation.
  • Loading branch information
ramosbugs committed Jul 2, 2023
1 parent 0f24a24 commit 288f9dc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/cypress-plugin/test/integration/src/run-test-case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,6 @@ export const runTestCase = async (
const env = {
...params.envVars,
DEBUG: process.env.TEST_DEBUG,
// Enable terminal colors for debug() output.
DEBUG_COLORS: "1",
// Ensure Cypress prints output with TTY colors.
FORCE_COLOR: "1",
// NODE_OPTIONS: "--loader=testdouble",
Expand Down

0 comments on commit 288f9dc

Please sign in to comment.