File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,18 @@ describe('highlightParsingError', () => {
62
62
let result = config . getHighlightParsingError ( )
63
63
expect ( result ) . toEqual ( true )
64
64
65
+ process . env = {
66
+ HIGHLIGHT_PARSING_ERRORS : '1' ,
67
+ }
68
+ result = config . getHighlightParsingError ( )
69
+ expect ( result ) . toEqual ( true )
70
+
71
+ process . env = {
72
+ HIGHLIGHT_PARSING_ERRORS : '0' ,
73
+ }
74
+ result = config . getHighlightParsingError ( )
75
+ expect ( result ) . toEqual ( false )
76
+
65
77
process . env = {
66
78
HIGHLIGHT_PARSING_ERRORS : 'false' ,
67
79
}
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ export function getGlobPattern(): string {
17
17
export function getHighlightParsingError ( ) : boolean {
18
18
const { HIGHLIGHT_PARSING_ERRORS } = process . env
19
19
return typeof HIGHLIGHT_PARSING_ERRORS !== 'undefined'
20
- ? HIGHLIGHT_PARSING_ERRORS === 'true'
20
+ ? HIGHLIGHT_PARSING_ERRORS === 'true' || HIGHLIGHT_PARSING_ERRORS === '1'
21
21
: true
22
22
}
You can’t perform that action at this time.
0 commit comments