Skip to content

Instantly share code, notes, and snippets.

@dominikschreiber
Created February 2, 2023 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominikschreiber/76172650805f139787b151ef70222a22 to your computer and use it in GitHub Desktop.
Save dominikschreiber/76172650805f139787b151ef70222a22 to your computer and use it in GitHub Desktop.
istanbul export const coverage repro
export const num = 1;
npx nyc -a -n file.mjs -r text -c false node --test test.mjs
import {num} from './file.mjs';
import assert from 'node:assert';
import {describe, it} from 'node:test';
describe('num', function() {
it('should be 1', function() {
assert.equal(num, 1);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment