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

Commit 288f9dc

Browse files
committed
[cypress] Disable debug colors within Cypress integration tests
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.
1 parent 0f24a24 commit 288f9dc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/cypress-plugin/test/integration/src/run-test-case.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,8 +855,6 @@ export const runTestCase = async (
855855
const env = {
856856
...params.envVars,
857857
DEBUG: process.env.TEST_DEBUG,
858-
// Enable terminal colors for debug() output.
859-
DEBUG_COLORS: "1",
860858
// Ensure Cypress prints output with TTY colors.
861859
FORCE_COLOR: "1",
862860
// NODE_OPTIONS: "--loader=testdouble",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy