UNPKG

@stryker-mutator/karma-runner

Version:

A plugin to use the karma test runner in Stryker, the JavaScript mutation testing framework

43 lines (40 loc) 1.63 kB
/** * This file was automatically generated by generate-json-schema-to-ts.js. * DO NOT MODIFY IT BY HAND. Instead, modify the source file JSON file: karma-runner-options.json, * and run 'npm run generate' from monorepo base directory. */ /** * Specify which kind of project you're using. This determines which command is used to start karma * * `custom`: configure @stryker-mutator/karma-runner to use `karma start` * * `angular-cli`: configure @stryker-mutator/karma-runner to use `ng test` */ export type ProjectKind = 'custom' | 'angular-cli'; export interface KarmaRunnerOptions { karma: StrykerKarmaSetup; } /** * Configuration for @stryker-mutator/karma-runner */ export interface StrykerKarmaSetup { projectType: ProjectKind; /** * Specify a ['karma.conf.js' file](http://karma-runner.github.io/2.0/config/configuration-file.html) to be loaded. Options specified directly in your stryker.conf.js file using `karma.config` will overrule options in your karma.conf.js file. */ configFile?: string; /** * Specify [karma configuration options](http://karma-runner.github.io/2.0/config/configuration-file.html) directly. Options specified here will overrule any options in your karma.conf.js file. */ config?: { [k: string]: unknown; }; ngConfig?: NgConfigOptions; } export interface NgConfigOptions { testArguments?: NgTestArguments; } /** * Add [ng test arguments](https://github.com/angular/angular-cli/wiki/test#options). For example, specify an alternative project with: `"testArguments": { "project": "my-lib" } */ export interface NgTestArguments { [k: string]: string; }