Skip to content

Unable to add custom reporter and destination #70

@valVk

Description

@valVk

Due to the fact that extension added --test-reporter without --test-reporter-destination here

args.push("--test-reporter", pathToFileURL(join(__dirname, "runner-loader.js")).toString());

I could not add my own reporters

so I have to add one additional --test-reporter-destination flag but it was not outlined nowhere in the documentation.

  "nodejs-testing.extensions": [
    {
      "extensions": [
        "mjs",
        "cjs",
        "js"
      ],
      "parameters": [
        "--experimental-require-module",
        "--experimental-test-module-mocks",
        "--experimental-test-coverage",
        "--test-reporter-destination=coverage/lcov.info", // <-- this like a compensation
        "--test-reporter-destination=coverage/lcov.info",
        "--test-reporter=lcov",
        "--test-reporter-destination=stdout",
        "--test-reporter=spec"
      ]
    }
  ],

Also I noted that by default node test runner uses "--experimental-test-snapshots" by default. I think that should be configurable rather than required flag

node --experimental-test-snapshots" "--test-reporter" "file:///.vscode/extensions/connor4312.nodejs-testing-1.7.0/out/runner-loader.js"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions