From d3201d1b89f7749175f09e1dcd7c14b2b8c701a8 Mon Sep 17 00:00:00 2001 From: Latifa Al-Hitmi Date: Thu, 24 Oct 2024 15:36:11 +0300 Subject: [PATCH] installed stryker mutation --- .gitignore | 4 +++- stryker.config.mjs | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 stryker.config.mjs diff --git a/.gitignore b/.gitignore index 837293632d..73bdea957e 100644 --- a/.gitignore +++ b/.gitignore @@ -74,4 +74,6 @@ link-plugins.sh test.sh .docker/** -!**/.gitkeep \ No newline at end of file +!**/.gitkeep +# stryker temp files +.stryker-tmp diff --git a/stryker.config.mjs b/stryker.config.mjs new file mode 100644 index 0000000000..c4f2702f7c --- /dev/null +++ b/stryker.config.mjs @@ -0,0 +1,13 @@ +// @ts-check +/** @type {import('@stryker-mutator/api/core').PartialStrykerOptions} */ +const config = { + _comment: + "This config was generated using 'stryker init'. Please take a look at: https://stryker-mutator.io/docs/stryker-js/configuration/ for more information.", + packageManager: "npm", + reporters: ["html", "clear-text", "progress"], + testRunner: "mocha", + testRunner_comment: + "Take a look at https://stryker-mutator.io/docs/stryker-js/mocha-runner for information about the mocha plugin.", + coverageAnalysis: "perTest", +}; +export default config;