Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: not support tsx script tag in .vue file #2849

Closed
zeyangxu opened this issue Apr 22, 2021 · 1 comment · Fixed by #2850
Closed

Bug: not support tsx script tag in .vue file #2849

zeyangxu opened this issue Apr 22, 2021 · 1 comment · Fixed by #2850
Labels
🐛 Bug Something isn't working

Comments

@zeyangxu
Copy link
Contributor

zeyangxu commented Apr 22, 2021

Summary

When mutation testing vue file with tsx script, no mutant is generated

image

minimal bad case repo: https://github.com/zeyangxu/stryker-js-bad-case

Stryker config

/**
 * @type {import('@stryker-mutator/api/core').StrykerOptions}
 */
module.exports = {
  _comment:
    "This config was generated using 'stryker init'. Please see the guide for more information: https://stryker-mutator.io/docs/stryker-js/guides/vuejs",
  testRunner: "jest",
  mutator: {
    plugins: [],
  },
  jest: {},
  mutate: ['*.vue'],
  reporters: ["progress", "clear-text", "html"],
  coverageAnalysis: "off",
};

Test runner config

module.exports = {
  moduleFileExtensions: [
    "js",
    "json",
    "vue"
  ],
  globals: {
    'ts-jest': {
      tsconfig: 'tsconfig.json'
    },
    "vue-jest": {
      "tsConfig": 'tsconfig.json'
    }
  },
  transform: {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest",
  }
}

Stryker environment

@stryker-mutator/core": ^4.6.0
@stryker-mutator/jest-runner": ^4.6.0
"jest": "^26.6.3",

Test runner environment

jest

Your Environment

software version(s)
node v12.22.1
npm 6.14.12
Operating System macOS Catalina 10.15.7

Add stryker.log

15:23:34 (14256) INFO ConfigReader Using stryker.conf.js
15:23:35 (14256) DEBUG BroadcastReporter Broadcasting to reporters ["progress","clear-text","html"]
15:23:35 (14256) DEBUG ConfigReader Loading config /Users/bytedance/WebDev/research/stryker-js-bad-case/stryker.conf.js
15:23:35 (14256) DEBUG ConfigReader Loaded config: {
  "_comment": "This config was generated using 'stryker init'. Please see the guide for more information: https://stryker-mutator.io/docs/stryker-js/guides/vuejs",
  "testRunner": "jest",
  "mutator": {
    "plugins": [],
    "excludedMutations": []
  },
  "jest": {},
  "mutate": [
    "*.vue"
  ],
  "reporters": [
    "progress",
    "clear-text",
    "html"
  ],
  "coverageAnalysis": "off",
  "allowConsoleColors": true,
  "checkers": [],
  "maxTestRunnerReuse": 0,
  "commandRunner": {
    "command": "npm test"
  },
  "clearTextReporter": {
    "allowColor": true,
    "logTests": true,
    "maxTestsToLog": 3
  },
  "dashboard": {
    "baseUrl": "https://dashboard.stryker-mutator.io/api/reports",
    "reportType": "full"
  },
  "eventReporter": {
    "baseDir": "reports/mutation/events"
  },
  "fileLogLevel": "trace",
  "inPlace": false,
  "logLevel": "info",
  "maxConcurrentTestRunners": 9007199254740991,
  "plugins": [
    "@stryker-mutator/*"
  ],
  "appendPlugins": [],
  "jsonReporter": {
    "fileName": "reports/mutation/mutation.json"
  },
  "disableTypeChecks": "{test,src,lib}/**/*.{js,ts,jsx,tsx,html,vue}",
  "symlinkNodeModules": true,
  "tempDirName": ".stryker-tmp",
  "cleanTempDir": true,
  "testRunnerNodeArgs": [],
  "thresholds": {
    "high": 80,
    "low": 60,
    "break": null
  },
  "timeoutFactor": 1.5,
  "timeoutMS": 5000,
  "dryRunTimeoutMinutes": 5,
  "tsconfigFile": "tsconfig.json",
  "warnings": true,
  "configFile": "/Users/bytedance/WebDev/research/stryker-js-bad-case/stryker.conf.js"
}
15:23:35 (14256) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:35 (14256) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:35 (14256) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:35 (14256) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:35 (14256) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:35 (14256) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:35 (14256) DEBUG buildSchemaWithPluginContributions Contributing 1 schemas from plugins to options validation.
15:23:35 (14256) INFO InputFileResolver Found 1 of 11 file(s) to be mutated.
15:23:35 (14256) DEBUG InputFileResolver All input files: [
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/.babelrc",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/.gitignore",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/README.md",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/example.spec.js",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/example.vue",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/jest.config.js",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/package.json",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/reports/mutation/html/index.html",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/stryker.conf.js",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/stryker.log",
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/tsconfig.json"
]
15:23:35 (14256) DEBUG InputFileResolver Files to mutate: [
  "/Users/bytedance/WebDev/research/stryker-js-bad-case/example.vue"
]
15:23:35 (14256) DEBUG TemporaryDirectory Using temp directory "/Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp"
15:23:35 (14256) DEBUG Instrumenter Instrumenting 1 source files with mutants
15:23:35 (14256) DEBUG Instrumenter Instrumented example.vue (0 mutant(s))
15:23:35 (14256) INFO Instrumenter Instrumented 1 source file(s) with 0 mutant(s)
15:23:35 (14256) DEBUG TSConfigPreprocessor Rewriting file File {
  name: '/Users/bytedance/WebDev/research/stryker-js-bad-case/tsconfig.json',
  _content: <Buffer 7b 0a 20 20 22 63 6f 6d 70 69 6c 65 72 4f 70 74 69 6f 6e 73 22 3a 20 7b 0a 20 20 20 20 22 72 6f 6f 74 44 69 72 22 3a 20 22 2e 22 2c 0a 20 20 20 20 22 ... 546 more bytes>,
  _textContent: '{\n' +
    '  "compilerOptions": {\n' +
    '    "rootDir": ".",\n' +
    '    "outDir": "./dist",\n' +
    '    "baseUrl": ".",\n' +
    '    "paths": {\n' +
    '      "Common/*": [\n' +
    '        "packages/common_package/*"\n' +
    '      ]\n' +
    '    },\n' +
    '    "types": [\n' +
    '      "node",\n' +
    '      "vue",\n' +
    '      "vue-i18n",\n' +
    '      "reflect-metadata"\n' +
    '    ],\n' +
    '    "module": "commonjs",\n' +
    '    "target": "es5",\n' +
    '    "lib": [\n' +
    '      "dom",\n' +
    '      "es2015.promise",\n' +
    '      "es2017.object",\n' +
    '      "es2019"\n' +
    '    ],\n' +
    '    "esModuleInterop": true,\n' +
    '    "jsx": "preserve",\n' +
    '    "allowJs": true,\n' +
    '    "experimentalDecorators": true,\n' +
    '    "allowSyntheticDefaultImports": true,\n' +
    '    "downlevelIteration": true\n' +
    '  }\n' +
    '}'
}
15:23:35 (14256) INFO ConcurrencyTokenProvider Creating 11 test runner process(es).
15:23:35 (14256) DEBUG Sandbox Creating a sandbox for files in /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:35 (14256) DEBUG Sandbox Start symlink node_modules
15:23:35 (14256) DEBUG Sandbox Create symlink from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/node_modules
15:23:35 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14262
15:23:35 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14263
15:23:35 (14256) INFO DryRunExecutor Starting initial test run. This may take a while.
15:23:35 (14256) DEBUG DryRunExecutor Using timeout of 300000 ms.
15:23:35 (14256) DEBUG TimeoutDecorator Starting timeout timer (300000 ms) for a test run
15:23:35 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14272
15:23:35 (14262) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:35 (14262) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:35 (14262) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:35 (14262) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:35 (14262) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:35 (14262) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:35 (14262) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:35 (14262) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:35 (14262) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:35 (14262) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:35 (14262) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:35 (14262) TRACE JestTestRunner Invoking Jest with config {"jestConfig":{"moduleFileExtensions":["js","json","vue"],"globals":{"ts-jest":{"tsconfig":"tsconfig.json"},"vue-jest":{"tsConfig":"tsconfig.json"},"__strykerGlobalNamespace__":"__stryker__"},"transform":{".*\\.(vue)$":"vue-jest","^.+\\.js$":"./node_modules/babel-jest","^.+\\.tsx?$":"ts-jest"},"bail":true,"collectCoverage":false,"verbose":false,"notify":false,"reporters":[]},"projectRoot":"/Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447"}
15:23:35 (14263) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:35 (14263) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:35 (14263) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:35 (14263) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:35 (14263) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:35 (14263) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:35 (14263) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:35 (14263) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:35 (14263) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:35 (14263) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:35 (14263) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:35 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14273
15:23:36 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14277
15:23:36 (14273) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:36 (14273) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:36 (14273) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:36 (14273) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:36 (14273) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:36 (14273) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:36 (14273) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:36 (14273) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:36 (14273) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:36 (14273) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:36 (14273) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:36 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14278
15:23:36 (14272) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:36 (14272) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:36 (14272) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:36 (14272) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:36 (14272) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:36 (14272) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:36 (14272) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:36 (14272) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:36 (14272) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:36 (14272) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:36 (14272) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:37 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14279
15:23:36 (14277) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:36 (14277) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:36 (14277) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:36 (14277) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:36 (14277) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:37 (14277) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:37 (14277) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:37 (14277) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:37 (14277) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:37 (14277) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:37 (14277) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:36 (14278) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:36 (14278) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:36 (14278) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:36 (14278) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:36 (14278) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:37 (14278) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:37 (14278) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:37 (14278) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:37 (14278) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:37 (14278) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:37 (14278) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:37 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14280
15:23:37 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14282
15:23:37 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14283
15:23:37 (14279) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:37 (14279) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:37 (14279) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:37 (14279) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:37 (14279) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:37 (14279) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:37 (14279) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:37 (14279) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:37 (14279) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:37 (14279) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:37 (14279) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:37 (14280) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:37 (14280) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:37 (14280) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:37 (14280) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:37 (14280) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:37 (14280) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:37 (14280) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:37 (14280) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:37 (14280) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:37 (14280) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:37 (14280) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:38 (14256) DEBUG ChildProcessProxy Started ChildProcessTestRunnerWorker in child process 14284
15:23:38 (14283) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:38 (14283) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:38 (14283) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:38 (14283) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:38 (14283) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:38 (14283) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:38 (14283) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:38 (14283) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:38 (14283) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:38 (14283) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:38 (14283) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:38 (14282) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:38 (14282) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:38 (14282) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:38 (14282) DEBUG PluginLoader Loading plugin "/Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:38 (14282) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:38 (14282) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:38 (14282) DEBUG PluginLoader Loading plugins /Users/bytedance/WebDev/research/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:38 (14282) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:38 (14282) DEBUG CustomJestConfigLoader Read Jest config from /Users/bytedance/WebDev/research/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:38 (14282) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:38 (14282) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:38 (14256) INFO DryRunExecutor Initial test run succeeded. Ran 1 tests in 2 seconds (net 11 ms, overhead 2770 ms).
15:23:38 (14256) DEBUG HtmlReporter No base folder configuration found (using configuration: htmlReporter: { baseDir: 'output/folder' }), using default reports/mutation/html
15:23:38 (14256) DEBUG MutationTestReportHelper No breaking threshold configured. Won't fail the build no matter how low your mutation score is. Set `thresholds.break` to change this behavior.
15:23:38 (14256) INFO HtmlReporter Your report can be found at: file:///Users/xxx/stryker-js-bad-case/reports/mutation/html/index.html
15:23:38 (14256) INFO MutationTestExecutor Done in 3 seconds.
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14263
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14262
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14272
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14273
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14277
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14279
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14278
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14262
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14280
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14282
15:23:38 (14256) DEBUG ChildProcessProxy Disposing of worker process 14283
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14263
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14272
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14273
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14277
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14279
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14278
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14280
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14283
15:23:38 (14256) DEBUG ChildProcessProxy Kill 14282
15:23:39 (14256) DEBUG ChildProcessProxy Disposing of worker process 14284
15:23:38 (14284) DEBUG ChildProcessProxyWorker Changing current working directory for this process to /Users/xxx/stryker-js-bad-case/.stryker-tmp/sandbox5236447
15:23:38 (14284) DEBUG PluginLoader Loading @stryker-mutator/* from /Users/xxx/stryker-js-bad-case/node_modules/@stryker-mutator
15:23:38 (14284) DEBUG PluginLoader Loading plugin "/Users/xxx/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter" (matched with expression @stryker-mutator/*)
15:23:38 (14284) DEBUG PluginLoader Loading plugin "/Users/xxx/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner" (matched with expression @stryker-mutator/*)
15:23:38 (14284) DEBUG PluginLoader Loading plugins /Users/xxx/stryker-js-bad-case/node_modules/@stryker-mutator/instrumenter
15:23:39 (14284) DEBUG PluginLoader Loading plugins /Users/xxx/stryker-js-bad-case/node_modules/@stryker-mutator/jest-runner
15:23:39 (14284) DEBUG PluginLoader Loading plugins /Users/xxx/stryker-js-bad-case/node_modules/@stryker-mutator/core/dist/src/reporters/index.js
15:23:39 (14284) DEBUG jestTestAdapterFactory Detected Jest version 26.6.3
15:23:39 (14284) DEBUG CustomJestConfigLoader Read Jest config from /Users/xxx/stryker-js-bad-case/.stryker-tmp/sandbox5236447/jest.config.js
15:23:39 (14284) DEBUG JestTestRunner Merging file-based config {
  "moduleFileExtensions": [
    "js",
    "json",
    "vue"
  ],
  "globals": {
    "ts-jest": {
      "tsconfig": "tsconfig.json"
    },
    "vue-jest": {
      "tsConfig": "tsconfig.json"
    }
  },
  "transform": {
    ".*\\.(vue)$": "vue-jest",
    "^.+\\.js$": "./node_modules/babel-jest",
    "^.+\\.tsx?$": "ts-jest"
  }
} 
      with custom config {
  "bail": true
}
      and default (internal) stryker config {
  "collectCoverage": false,
  "verbose": false,
  "notify": false,
  "reporters": []
}
15:23:39 (14284) DEBUG JestTestRunner Running jest with --findRelatedTests flag. Set jest.enableFindRelatedTests to false to run all tests on every mutant.
15:23:39 (14256) DEBUG ChildProcessProxy Kill 14284
15:23:39 (14256) DEBUG TemporaryDirectory Deleting stryker temp directory /Users/xxx/stryker-js-bad-case/.stryker-tmp
@nicojs
Copy link
Member

nicojs commented May 14, 2021

This feature landed in Stryker 5.0 just now. Have fun mutation testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants