You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When stryker adds the header // @ts-nocheck to typescript files, it can have the undesired side effect of actually reporting errors when a @ts-expect-error is found somewhere.
Strip comments of JavaScript and friend files in the sandbox. This will make sure no `// @ts-expect-error` or `// @ts-check` comments survive, as they break typescript compilation. You can configure this behavior.
```js
{
"sandbox": {
"stripComments": "**/*+(.js|.ts|.cjs|.mjs)?(x)"
}
}
```
You can disable this behavior by setting `stripComments` to `false`.
Adds a dependency on `strip-comments`, seems like a legit way of stripping comments.
Rename `sandboxFileHeaders` to `sandbox.fileHeaders` to be in line with this sandbox options collection.
Fixes#2364
When stryker adds the header
// @ts-nocheck
to typescript files, it can have the undesired side effect of actually reporting errors when a@ts-expect-error
is found somewhere.microsoft/TypeScript#39427
The text was updated successfully, but these errors were encountered: