Skip to content

Commit

Permalink
fix: add missing dot for tsx file extension
Browse files Browse the repository at this point in the history
This missing dot results in .tsx file not being included in coverage reports.
  • Loading branch information
lxghtless authored and jason0x43 committed Sep 25, 2020
1 parent 27b3886 commit 6dc096f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/executors/Node.ts
Expand Up @@ -1005,7 +1005,7 @@ export default class Node extends Executor<NodeEvents, Config, NodePlugins> {
this._unhookRequire = hookRequire(
filename => this.shouldInstrumentFile(filename),
(code, { filename }) => this.instrumentCode(code, filename),
{ extensions: ['.js', '.jsx', '.ts', 'tsx'] }
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] }
);
}

Expand Down

0 comments on commit 6dc096f

Please sign in to comment.