Skip to content

Commit 6391e6e

Browse files
committed
test: update enable-source-maps coverage test
1 parent 1157465 commit 6391e6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-runner-coverage-source-map.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ describe('Coverage with source maps', async () => {
4545
t.assert.strictEqual(spawned.code, 1);
4646
});
4747

48-
await it.only('accounts only mapped lines when --enable-source-maps is provided', async (t) => {
48+
it('accounts only mapped lines when --enable-source-maps is provided', async (t) => {
4949
const report = generateReport([
5050
'# --------------------------------------------------------------',
5151
'# file | line % | branch % | funcs % | uncovered lines',
5252
'# --------------------------------------------------------------',
5353
'# a.test.ts | 100.00 | 100.00 | 100.00 | ', // part of a bundle
5454
'# b.test.ts | 88.89 | 100.00 | 100.00 | 1', // part of a bundle
5555
'# index.test.js | 71.43 | 66.67 | 100.00 | 6-7', // no source map
56-
'# stdin.test.ts | 85.71 | 100.00 | 0.00 | 2', // Source map without original file
56+
'# stdin.test.ts | 100.00 | 100.00 | 100.00 | ', // Source map without original file
5757
'# --------------------------------------------------------------',
58-
'# all files | 88.89 | 85.71 | 66.67 | ',
58+
'# all files | 91.67 | 87.50 | 100.00 | ',
5959
'# --------------------------------------------------------------',
6060
]);
6161

@@ -114,6 +114,7 @@ describe('Coverage with source maps', async () => {
114114
const spawned = await common.spawnPromisified(process.execPath, [...flags, file]);
115115

116116
const error = `The source map for '${pathToFileURL(file)}' does not exist or is corrupt`;
117+
117118
t.assert.strictEqual(spawned.stderr, '');
118119
t.assert.ok(spawned.stdout.includes(error));
119120
t.assert.strictEqual(spawned.code, 1);

0 commit comments

Comments
 (0)