mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-20 06:01:12 -06:00
* cli: fixes #838 start cypress in dev by routing through the CLI - matches how we run in production better to keep parity and consistency * cli: add coerceFalse for clarity * cli: add global flag, update to work with windows * server: bring into parity with root scripts * cli: just execute start script directly to work with windows * cli: if colors are supported then force them via env vars - this fixes windows not displaying colors from electron because by default isTTY is false (due to electron) * cli: fixes #921 don't ignore stderr, inherit stdio on everything except when linux + xvfb - filter out stderr messages coming from Xlib or libudev (from xvfb) * cli, server: force stderr tty so that normalize tty behavior when piping * server: drop in supports color so debug outputs more colors! * server: remove empty line * root: refer to cypress not monorepo * cli: make util.supportsColor return boolean * cl: add tests around spawn behavior with forcing colors, tty, and stdio configuration * cli: handle xvfb onStderrData callback to output debug information * cli: handle non zero exit code error from xvfb with special message
22 lines
718 B
JavaScript
22 lines
718 B
JavaScript
// override tty if we're being forced to
|
|
require('./lib/util/tty').override()
|
|
|
|
// if we are running in electron
|
|
// we must hack around busted timers
|
|
if (process.versions.electron) {
|
|
require('./timers/parent').fix()
|
|
}
|
|
|
|
process.env.UV_THREADPOOL_SIZE = 128
|
|
require('graceful-fs').gracefulify(require('fs'))
|
|
// if running in production mode (CYPRESS_ENV)
|
|
// all transpile should have been done already
|
|
// and these calls should do nothing
|
|
require('@packages/ts/register')
|
|
require('@packages/coffee/register')
|
|
|
|
require && require.extensions && delete require.extensions['.litcoffee']
|
|
require && require.extensions && delete require.extensions['.coffee.md']
|
|
|
|
module.exports = require('./lib/cypress').start(process.argv)
|