Preprocessor for Karma to compile
Kit files on the fly. Useful for
providing kit-based test fixtures.
Upon loading a target kit file, Karma will compile the kit file using the
node-kit compiler, processing any
variables and import declarations found within. Additionally, Karma will watch
the kit files for changes.
Installation
yarn add karma-kit-preprocessor --dev
or
npm install karma-kit-preprocessor --save-dev
Configuration
Associate the preprocessor with kit files in your karma.conf.js, and instruct
Karma to serve kit files: