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

Allow instrumentation of transformed files with weird file extensions #9589

Merged
merged 2 commits into from Feb 19, 2020

Commits on Feb 19, 2020

  1. Allow instrumentation of transformed files with weird file extensions

    The default configuration of babel-plugin-istanbul only allows
    instrumentation of files with extensions .js, .cjs, .mjs, .ts, .tsx,
    .jsx (https://github.com/istanbuljs/schema/blob/v0.1.2/index.js#L71).
    However, we know that we’re running it on code that we just
    transformed to JavaScript, so the source language no longer matters,
    and we should disable this check to get complete instrumentation.
    
    Signed-off-by: Anders Kaseorg <andersk@mit.edu>
    andersk committed Feb 19, 2020
    Copy the full SHA
    b4c6332 View commit details
    Browse the repository at this point in the history
  2. Add integration test for instrumentation file extension fix

    Signed-off-by: Anders Kaseorg <andersk@mit.edu>
    andersk committed Feb 19, 2020
    Copy the full SHA
    443734c View commit details
    Browse the repository at this point in the history