diff --git a/test/jest/unit/lib/unexpected-error.spec.ts b/test/jest/unit/lib/unexpected-error.spec.ts index 5d49f89fef7..28f16c73163 100644 --- a/test/jest/unit/lib/unexpected-error.spec.ts +++ b/test/jest/unit/lib/unexpected-error.spec.ts @@ -1,5 +1,5 @@ import * as path from 'path'; -import { runCommand } from '../../util/runCommand'; +import { RunCommandOptions, runCommand } from '../../util/runCommand'; import { getFixturePath } from '../../util/getFixturePath'; /** @@ -15,7 +15,8 @@ import { getFixturePath } from '../../util/getFixturePath'; describe('callHandlingUnexpectedErrors', () => { async function runScript(filename: string) { const file = path.resolve(getFixturePath('unexpected-error'), filename); - return runCommand('node', ['-r', 'ts-node/register', file]); + const options: RunCommandOptions = { env: { FORCE_COLOR: '0' } }; + return runCommand('node', ['-r', 'ts-node/register', file], options); } it('calls the provided callable', async () => {