Skip to content

Commit 4212177

Browse files
test: keep coverage instrumentation out of jsonMinify
The minimizer ships it to its worker pool as source, where the injected coverage counters are undefined, like the other worker minifiers.
1 parent a3a1dff commit 4212177

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎jest.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const config = {
4949
"\\.runtime\\.js$",
5050
// Serialized to the minimizer's worker pool as source (like runtime code):
5151
// coverage instrumentation would inject counters the worker can't resolve.
52-
"[\\\\/]lib[\\\\/](?:css[\\\\/]cssMinify|html[\\\\/]htmlMinify|javascript[\\\\/]jsMinify)\\.js$",
52+
"[\\\\/]lib[\\\\/](?:css[\\\\/]cssMinify|html[\\\\/]htmlMinify|javascript[\\\\/]jsMinify|json[\\\\/]jsonMinify)\\.js$",
5353
"<rootDir>/test",
5454
"<rootDir>/schemas",
5555
"<rootDir>/examples",

0 commit comments

Comments
 (0)