-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): disableTypeChecks true only forces ts-like file match (#4485)
Change the meaning of `true` for `disableTypeChecks` from all files to `'**/*.{js,ts,jsx,tsx,html,vue,mjs,mts,cts,cjs}'`.
- Loading branch information
Showing
13 changed files
with
136 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const foo = 'bar'; | ||
import { readFileSync } from 'fs'; | ||
|
||
export default function () { | ||
if (foo === 'bar') { | ||
const buf = readFileSync('input.docx'); | ||
return buf; | ||
} | ||
return 'baz'; | ||
} |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "use-binary-filesg", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"description": "A module to verify issue https://github.com/stryker-mutator/stryker-js/issues/4386", | ||
"main": "index.js", | ||
"scripts": { | ||
"test:unit": "mocha", | ||
"pretest": "rimraf \"reports\" \"stryker.log\"", | ||
"test": "stryker run", | ||
"posttest": "mocha --no-config --no-package --timeout 0 verify/verify.js" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "../../node_modules/@stryker-mutator/core/schema/stryker-schema.json", | ||
"packageManager": "npm", | ||
"testRunner": "mocha", | ||
"concurrency": 1, | ||
"reporters": ["json", "html", "progress", "clear-text"], | ||
"fileLogLevel": "warn", | ||
"plugins": ["@stryker-mutator/mocha-runner"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import foo from '../foo.js'; | ||
|
||
describe('should do x', function () { | ||
it('xxx', function () { | ||
console.log('hello'); | ||
const result = foo(); | ||
console.log(result.length); | ||
if (result.length !== 12077) { | ||
throw new Error(`Error getting result : ${result.length}`); | ||
} | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "module" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { expectMetricsJsonToMatchSnapshot } from '../../../helpers.js'; | ||
|
||
describe('Verify stryker has ran correctly', () => { | ||
it('should report correct score', async () => { | ||
await expectMetricsJsonToMatchSnapshot(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Verify stryker has ran correctly should report correct score 1`] = ` | ||
Object { | ||
"compileErrors": 0, | ||
"ignored": 0, | ||
"killed": 0, | ||
"mutationScore": NaN, | ||
"mutationScoreBasedOnCoveredCode": NaN, | ||
"noCoverage": 0, | ||
"pending": 0, | ||
"runtimeErrors": 0, | ||
"survived": 0, | ||
"timeout": 0, | ||
"totalCovered": 0, | ||
"totalDetected": 0, | ||
"totalInvalid": 0, | ||
"totalMutants": 0, | ||
"totalUndetected": 0, | ||
"totalValid": 0, | ||
} | ||
`; |
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