Created
February 2, 2023 12:20
-
-
Save dominikschreiber/76172650805f139787b151ef70222a22 to your computer and use it in GitHub Desktop.
istanbul export const coverage repro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const num = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx nyc -a -n file.mjs -r text -c false node --test test.mjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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