stryker-mutator / stryker-js

Mutation testing for JavaScript and friends
https://stryker-mutator.io
Apache License 2.0
2.55k stars 242 forks source link

Remove jest deprecated options #4736

Open nicojs opened 4 months ago

nicojs commented 4 months ago

Summary

The jest runner provides a lot of options that are deprecated. Probably good to update those.

        ● Validation Warning:

          Unknown option "verbose" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "notify" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "bail" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "reporters" with value [] was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "collectCoverage" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "verbose" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "notify" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "bail" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "reporters" with value [] was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

         ChildProcessCrashedError: Child process [pid 15047] exited unexpectedly with exit code null (SIGKILL). Last part of stdout and stderr was:
        ● Validation Warning:

          Unknown option "verbose" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "notify" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "bail" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "reporters" with value [] was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "collectCoverage" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "verbose" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "notify" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "bail" with value false was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

        ● Validation Warning:

          Unknown option "reporters" with value [] was found.
          This is probably a typing mistake. Fixing it will remove this message.

          Configuration Documentation:
          https://jestjs.io/docs/configuration

Stryker config

{
  "$schema": "./node_modules/@stryker-mutator/core/schema/stryker-schema.json",
  "testRunner": "jest",
  "testRunnerNodeArgs": ["--experimental-vm-modules"],
  "reporters": ["progress", "clear-text", "html"],
  "concurrency": 8
}

Test runner config

Stryker environment

+-- @stryker-mutator/core@x.x.x
+-- @stryker-mutator/xxx-xxx@x.x.x
+-- mocha@x.x.x
+-- jest@x.x.x
+-- karma@x.x.x
+-- angular-cli@x.x.x
+-- react-scripts@x.x.x

Test runner environment

# Test command

Your Environment

software version(s)
node
npm
Operating System

Add stryker.log