Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jan 13, 2025
1 parent 75e5fe2 commit db2c81f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/main.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { fork } from 'node:child_process'
import { createColors } from '../src/node'
import { assert, expect, test } from 'vitest'
import { fileURLToPath } from 'node:url'
import { resolve } from 'node:path'

const FMT = {
Expand Down Expand Up @@ -34,7 +33,7 @@ const FMT = {

delete process.env.GITHUB_ACTIONS

const pc = createColors(true)
const pc = createColors()

test('color matching', () => {
for (let key in FMT) {
Expand Down Expand Up @@ -164,6 +163,7 @@ test('no maximum call stack error', () => {
test('non-TTY does not enable colors', async () => {
const proc = fork(resolve(__dirname, 'fixtures/child-process.mjs'), {
stdio: 'pipe',
env: { TERM: 'dumb' },
})

let data = ''
Expand Down

0 comments on commit db2c81f

Please sign in to comment.