karma-bundledump-preprocessor

1.0.3 • Public • Published

karma-bundledump-preprocessor

Karma preprocessor for saving test bundles into .dump files.

Installation

Using npm:

npm install karma-bundledump-preprocessor --save-dev

Configuration

Following code shows the default configuration:

// karma.conf.js
module.exports = function (config) {
  config.set({
    plugins: [
      require("karma-bundledump-preprocessor"),
    ],
    preprocessors: {
      "**/*.js": ["bundledump"],
    },
  });
};

Note. Karma will execute the preprocessors over the files in the order they are listed. Make sure that the bundledump is the last preprocessor in the preprocessors array.

How does it work ?

Karma preprocessors mutate the content of the test files. This preprocessor saves the final test bundle to a .dump file before it is loaded into the browser. Then you can inspect the dump file for build errors or other errors.


For more information on Karma see the homepage.

Package Sidebar

Install

npm i karma-bundledump-preprocessor

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

3.82 kB

Total Files

4

Last publish

Collaborators

  • checker2