Skip to content

Commit cd25f1f

Browse files
committed
add chalk to test log output
1 parent f6eb46f commit cd25f1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"@types/ts-nameof": "^4.2.1",
6868
"@whitecolor/eslint-config": "^1.0.0",
6969
"chai": "^4.2.0",
70+
"chalk": "^4.1.0",
7071
"coffee-script": "^1.8.0",
7172
"eslint": "^7.7.0",
7273
"esm": "^3.2.22",

test/manual/test-script.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { fn } from './dep'
22
import { A } from './dep-interface'
3+
const chalk = require('chalk')
34
const str: string = process.argv[2]
45
const obj: A = {
56
a: '1',
@@ -12,7 +13,7 @@ console.log('test', str)
1213

1314

1415
setInterval(() => {
15-
console.log('Working')
16+
console.log(chalk.green('Working'))
1617
}, 5000)
1718

1819

0 commit comments

Comments
 (0)