-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript-checker): support TS 4.4 (#3178)
TypeScript 4.4 also watches package.json files in node_modules for changes. I guess this is done to be able to reload the types when a node_module gets updated. However, the typescript-checker wasn't expecting those `watchFile` calls to come in. The checker was defensive programmed, meaning an error is thrown when something happens that it doesn't expect. This ended up being a simple fix. Simply ignoring `watchFile` of files that are not loaded seems to do the trick.
- Loading branch information
Showing
7 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
], | ||
"coverageAnalysis": "off", | ||
"reporters": [ | ||
"event-recorder", | ||
"progress", | ||
"html" | ||
"html", | ||
"json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
import { expectMetrics } from '../../../helpers'; | ||
import { expectMetricsJson } from '../../../helpers'; | ||
|
||
describe('Verify stryker has ran correctly', () => { | ||
|
||
it('should report correct score', async () => { | ||
await expectMetrics({ | ||
await expectMetricsJson({ | ||
ignored: 0, | ||
killed: 17, | ||
mutationScore: 56.67, | ||
mutationScore: 62.96, | ||
noCoverage: 0, | ||
survived: 13, | ||
survived: 10, | ||
timeout: 0, | ||
compileErrors: 32 | ||
compileErrors: 35, | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters