From 2ee7a11feac5413164bd6c605b67cc381e76866c Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 4 Oct 2020 12:31:01 +0200 Subject: [PATCH] fix stryker config --- jasmine.json | 6 ++++-- package.json | 2 ++ stryker.conf.js | 6 ++++-- yarn.lock | 15 +++++++++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/jasmine.json b/jasmine.json index b2c441f..e39becf 100644 --- a/jasmine.json +++ b/jasmine.json @@ -2,10 +2,12 @@ { "spec_dir": "test", "spec_files": [ - "spec/*.js" + "spec/*.js", + "spec/*.ts" ], "helpers": [ - "helpers/*.js" + "helpers/*.js", + "helpers/*.ts" ], "stopSpecOnExpectationFailure": false, "random": false diff --git a/package.json b/package.json index c0f3851..35af885 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "@sapphirecode/auth-client-helper": "^1.0.45", "@sapphirecode/eslint-config": "^2.1.4", "@stryker-mutator/core": "^3.2.3", + "@stryker-mutator/jasmine-framework": "^3.3.1", + "@stryker-mutator/jasmine-runner": "^3.3.1", "@stryker-mutator/javascript-mutator": "^3.2.3", "@types/jasmine": "^3.5.14", "eslint": "^7.0.0", diff --git a/stryker.conf.js b/stryker.conf.js index 29b3d50..145d8c5 100644 --- a/stryker.conf.js +++ b/stryker.conf.js @@ -17,8 +17,10 @@ module.exports = { 'clear-text', 'progress' ], - testRunner: 'command', + testRunner: 'jasmine', + testFramework: 'jasmine', + jasmineConfigFile: 'jasmine.json', transpilers: [], - coverageAnalysis: 'all', + coverageAnalysis: 'perTest', mutate: [ 'index.js' ] }; diff --git a/yarn.lock b/yarn.lock index d02e1db..47a6bb2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -337,6 +337,21 @@ typed-inject "~2.2.1" typed-rest-client "~1.7.1" +"@stryker-mutator/jasmine-framework@^3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@stryker-mutator/jasmine-framework/-/jasmine-framework-3.3.1.tgz#83d7c0aee6e9a6ac84d7715fad03c13012768027" + integrity sha512-6fwZj6PVHeoXt5HUC/vkBv2MOKuAjdBgzLAplykkMwqCcWCWXXkfQtL3hYbBecUWcajNg4tNQCQY48FEf0W0hg== + dependencies: + "@stryker-mutator/api" "^3.3.1" + +"@stryker-mutator/jasmine-runner@^3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@stryker-mutator/jasmine-runner/-/jasmine-runner-3.3.1.tgz#365e1d92fa2bfe39c74e6eff89f6244ce480d8c7" + integrity sha512-lMsSW/Mfa9z5qhnZpD7WqXWeZGfD2qls5MSrJUWhQ+xItEI88CoP0auGC/zb2KiMpr9NqBGOwQhvC8HoCTij7g== + dependencies: + "@stryker-mutator/api" "^3.3.1" + "@stryker-mutator/util" "^3.3.1" + "@stryker-mutator/javascript-mutator@^3.2.3": version "3.3.1" resolved "https://registry.yarnpkg.com/@stryker-mutator/javascript-mutator/-/javascript-mutator-3.3.1.tgz#db22a0802bd0ff6f192d15bcf92d6c1d65b0db15"