Naivete Precedes Misrepresentation
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@stryker-mutator/webpack-transpiler

3.3.1 • Public • Published

Mutation testing badge Build Status NPM Node version Slack Chat

Stryker Webpack Transpiler

A plugin to support Webpack bundling as a transpiler in Stryker, the JavaScript Mutation testing framework.

Quick start

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 (or stryker.conf.json) file and add the following properties:

webpack: {
    configFile: 'webpack.config.js', // Location of your webpack config file
    silent: 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 stryker.conf.js (or stryker.conf.json) automatically.

Now give it a go:

$ stryker run

Peer dependencies

The @stryker-mutator/webpack-transpiler plugin requires the following packages to be installed in order to work:

  • @stryker-mutator/core
  • webpack

For the current supported versions, see the peerDependencies section in the package.json file.

Install

npm i @stryker-mutator/webpack-transpiler

DownloadsWeekly Downloads

377

Version

3.3.1

License

Apache-2.0

Unpacked Size

55.2 kB

Total Files

30

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar