Closed lxghtless closed 3 years ago
.tsx files should show up in code coverage.
.tsx
.tsx files do not show up in code coverage.
There should be a dot in front of tsx here.
tsx
intern.json
{ "suites": ["test/**/*.ts", "test/**/*.tsx"], "coverage": ["src/**/*.ts", "src/**/*.tsx"], "reporters": ["runner", "jsoncoverage", "lcov", "htmlcoverage"], "plugins": [ "node_modules/jsdom-global/register.js", "node_modules/ts-node/register/index.js" ], "environments": "node", "instrumenterOptions": { "esModules": true } }
command: TS_NODE_PROJECT=test/tsconfig.json intern
TS_NODE_PROJECT=test/tsconfig.json intern
Intern version: 4.8.7 Node version: 12.18.4 NPM version: 6.14.6 Browser version: Not Applicable
I went into node_modules and added the missing dot & that resulted in full coverage.
node_modules
See PR #1175 for the fix.
Resolved by a3b9643d43989d586dafc264200508ab96e65dfa
Expected behavior
.tsx
files should show up in code coverage.Current behavior
.tsx
files do not show up in code coverage.Possible solution
There should be a dot in front of
tsx
here.Steps to reproduce (for bugs)
.tsx
files. Here's an exampleintern.json
and command I'm using.command:
TS_NODE_PROJECT=test/tsconfig.json intern
.tsx
files do not show up in coverage results.Environment
Intern version: 4.8.7 Node version: 12.18.4 NPM version: 6.14.6 Browser version: Not Applicable
Additional information
I went into
node_modules
and added the missing dot & that resulted in full coverage.See PR #1175 for the fix.