Skip to content

Commit 69b4a28

Browse files
committed
Fix flaky terminal colors in tests
1 parent 06d7566 commit 69b4a28

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

create-reporter/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import '../test/force-colors.js'
2+
13
import { LoguxError } from '@logux/core'
24
import { nanoid } from 'nanoid'
35
import { existsSync, readFileSync, statSync } from 'node:fs'

options-loader/index.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import '../test/force-colors.js'
2+
13
import { resolve } from 'node:path'
24
import { describe, expect, it } from 'vitest'
35

test/force-colors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
process.env.FORCE_COLOR = '1'

0 commit comments

Comments
 (0)