-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: move --enable-source-maps test to a single file
- Loading branch information
1 parent
f5c4c40
commit d8a51cf
Showing
2 changed files
with
16 additions
and
37 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
require('../common'); | ||
const assert = require('node:assert'); | ||
const { spawnSync } = require('node:child_process'); | ||
const { test } = require('node:test'); | ||
const fixtures = require('../common/fixtures'); | ||
|
||
test('ensures --enable-source-maps does not throw an error', () => { | ||
const fixture = fixtures.path('test-runner', 'coverage', 'stdin.test.js'); | ||
const args = ['--enable-source-maps', fixture]; | ||
|
||
const result = spawnSync(process.execPath, args); | ||
|
||
assert.strictEqual(result.stderr.toString(), ''); | ||
assert.strictEqual(result.status, 0); | ||
}); |