@stryker-mutator/webpack-transpiler2.0.0 • Public • Published
Stryker Webpack Transpiler
First, install Stryker itself (you can follow the quickstart on the website)
Next, install this package:
npm install --save-dev @stryker-mutator/webpack-transpiler
Open up your
stryker.conf.js file and add the following properties:
webpack:configFile: 'webpack.config.js' // Location of your webpack config filesilent: true // Specify to remove the "ProgressPlugin" from your webpack config file (making the process silent)transpilers:'webpack' // Specify that your code needs to be transpiled before tests can be run
Note: if the webpack config is absent from your stryker configuration, the above values are used by default.
If you initialize stryker using
stryker init, the webpack property will be added to your
Now give it a go:
$ stryker run
@stryker-mutator/webpack-transpiler plugin requires the following packages to be installed in order to work:
For the current supported versions, see the
peerDependencies section in the package.json file.