File tree Expand file tree Collapse file tree 4 files changed +15
-10
lines changed Expand file tree Collapse file tree 4 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 24
24
"license": "MIT",
25
25
"private": false,
26
26
"dependencies": {
27
- "colors ": "^1.4 .0",
27
+ "chalk ": "^5.0 .0",
28
28
"commander": "^5.0.0",
29
29
"ncp": "^2.0.0",
30
30
"react": "^16.13.1",
Original file line number Diff line number Diff line change 11
11
"license" : " MIT" ,
12
12
"private" : false ,
13
13
"dependencies" : {
14
- "colors " : " ^1.4 .0" ,
14
+ "chalk " : " ^5.0 .0" ,
15
15
"commander" : " ^5.0.0" ,
16
16
"ncp" : " ^2.0.0" ,
17
17
"react" : " ^16.13.1" ,
Original file line number Diff line number Diff line change 1
1
import Table from "terminal-table" ;
2
2
import { CoverageData } from "../getCoverage" ;
3
- import "colors ";
3
+ import chalk from "chalk ";
4
4
5
5
const coverageTable = new Table ( {
6
6
leftPadding : 1 ,
@@ -29,16 +29,16 @@ export const generate = (
29
29
) : string => {
30
30
let row = 1 ;
31
31
const headers = [
32
- "filenames" + ` (${ fileCounts . size } )` . gray ,
33
- "percent" + ` (${ percentage . toFixed ( 2 ) } %)` . gray ,
34
- "total" + ` (${ total } )` . gray ,
35
- "covered" + ` (${ covered } )` . gray ,
36
- "uncovered" + ` (${ uncovered } )` . gray
32
+ "filenames" + chalk . gray ( ` (${ fileCounts . size } )` ) ,
33
+ "percent" + chalk . gray ( ` (${ percentage . toFixed ( 2 ) } %)` ) ,
34
+ "total" + chalk . gray ( ` (${ total } )` ) ,
35
+ "covered" + chalk . gray ( ` (${ covered } )` ) ,
36
+ "uncovered" + chalk . gray ( ` (${ uncovered } )` )
37
37
] ;
38
38
39
39
coverageTable . push (
40
40
headers ,
41
- headers . map ( ( ) => "---" . gray )
41
+ headers . map ( ( ) => chalk . gray ( "---" ) )
42
42
) ;
43
43
44
44
coverageTable . attrRange (
Original file line number Diff line number Diff line change @@ -2144,6 +2144,11 @@ chalk@^3.0.0:
2144
2144
ansi-styles "^4.1.0"
2145
2145
supports-color "^7.1.0"
2146
2146
2147
+ chalk@^5.0.0 :
2148
+ version "5.0.0"
2149
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.0.0.tgz#bd96c6bb8e02b96e08c0c3ee2a9d90e050c7b832"
2150
+ integrity sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==
2151
+
2147
2152
chardet@^0.4.0 :
2148
2153
version "0.4.2"
2149
2154
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
@@ -2338,7 +2343,7 @@ colorette@^1.2.2:
2338
2343
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94"
2339
2344
integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==
2340
2345
2341
- colors@^1.0.3, colors@^1.1.2, colors@^1.4.0 :
2346
+ colors@^1.0.3, colors@^1.1.2 :
2342
2347
version "1.4.0"
2343
2348
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
2344
2349
integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
You can’t perform that action at this time.
0 commit comments