Skip to content

Experimental coverage skips .ts files #49398

Closed
@nicoabie

Description

@nicoabie

Version

v18.17.1

Platform

Darwin mars.local 23.0.0 Darwin Kernel Version 23.0.0: Fri Aug 18 00:02:20 PDT 2023; root:xnu-10002.1.11~5/RELEASE_ARM64_T8103 arm64

Subsystem

No response

What steps will reproduce the bug?

Pointing to ts files

NODE_V8_COVERAGE=./coverage node -r ts-node/register --test --experimental-test-coverage src/**/*.spec.ts

No coverage is reported

How often does it reproduce? Is there a required condition?

Always

Pointing to js files creates a coverage folder

NODE_V8_COVERAGE=./coverage node -r ts-node/register --test --experimental-test-coverage src/**/*.spec.js

What is the expected behavior? Why is that the expected behavior?

To have coverage

What do you see instead?

Seems coverage reporter is filtering out files that don't have extension

  • js
  • cjs
  • mjs

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions