File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
test/run-programmatically/tty-worker Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22// eslint-disable-next-line @typescript-eslint/no-var-requires
33const { register : registerTypescriptHandler } = require ( 'ts-node' ) ;
44
5- // monkeypatch Node.JS native TTY function
6- // otherwise mocha native base reporter throws exception
7- // inside a worker environment
8- require ( 'tty' ) . getWindowSize = ( ) => 75 ;
9-
105registerTypescriptHandler ( ) ;
116require ( `${ __dirname } /worker.ts` ) ;
Original file line number Diff line number Diff line change 1- import { workerData } from 'worker_threads' ;
1+ // monkeypatch Node.JS native TTY function
2+ // otherwise mocha native base reporter throws exception
3+ // inside a worker environment
4+ require ( 'tty' ) . getWindowSize = ( ) => 75 ;
25
6+ import { workerData } from 'worker_threads' ;
37import { runMocha } from '../runner' ;
48import { WorkerData } from '../../main/thread/worker' ;
59
Original file line number Diff line number Diff line change 11Check that spec reporter can work in a non-TTY window
2+ TODO: this test fails when you run index.js from the terminal but doesn't fail when it's executed from tests/index.sh
You can’t perform that action at this time.
0 commit comments