Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@stryker-mutator/typescript-checker
Advanced tools
Changelog
Readme
NOTE: This readme describes a checker plugin set to release in Stryker v4. It is not usable yet! Please see the master branch for the current release of Stryker.
A TypeScript type checker plugin for Stryker, the JavaScript TypeScript Mutation testing framework.
This plugin enables type checking on mutants, so you won't have to waste time on mutants which results in a type error.
👽 Type check each mutant. Invalid mutants will be marked as CompileError
in your Stryker report.
🧒 Easy to setup, only your tsconfig.json
file is needed.
🔢 Type check is done in-memory, no side effects on disk.
🎁 Support for both single typescript projects as well as projects with project references (--build
mode).
First, install Stryker itself (you can follow the quickstart on the website)
Next, install this package:
npm install --save-dev @stryker-mutator/typescript-checker
You can configure the typescript checker in the stryker.conf.js
(or stryker.conf.json
) file.
// stryker.conf.json
{
"checkers": ["typescript"],
"tsconfigFile": "tsconfig.json"
}
tsconfigFile
[string
]Default: 'tsconfig.json'
The path to your tsconfig. Project references are supported, --build
mode will be enabled automatically when references are found in your tsconfig.json file.
Note: the following compiler options are always overridden by @stryker-mutator/typescript-checker to ovoid false positives. See issue 391 for more information on this
{
"compilerOptions": {
"allowUnreachableCode": true,
"noUnusedLocals": false,
"noUnusedParameters": false
}
}
The @stryker-mutator/typescript-checker
package for stryker
to enable typescript
support. As such, you should make sure you have the correct versions of its dependencies installed:
typescript
@stryker-mutator/core
For the current versions, see the peerDependencies
section in the package.json.
In this plugin the @stryker-mutator/typescript-checker
' must be loaded into Stryker.
The easiest way to achieve this, is not have a plugins
section in your config file. That way, all plugins starting with "@stryker-mutator/"
will be loaded.
If you do decide to choose specific modules, don't forget to add "@stryker-mutator/typescript-checker"
to the list of plugins to load.
FAQs
A typescript type checker plugin to be used in Stryker, the JavaScript mutation testing framework
We found that @stryker-mutator/typescript-checker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).