Skip to content

Commit 5d78dd2

Browse files
committed
fix harness to check for no generated .map files
1 parent 7871d18 commit 5d78dd2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/harness/compilerRunner.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,12 @@ class CompilerBaselineRunner extends RunnerBase {
229229

230230
it('Correct Sourcemap output for ' + fileName, () => {
231231
if (options.sourceMap) {
232-
if (result.sourceMaps.length !== result.files.length) {
232+
if (options.inlineSourceMap) {
233+
if (result.sourceMaps.length > 0) {
234+
throw new Error('No sourcemap files should be generated if inlineSourceMaps was set.');
235+
}
236+
}
237+
else if (result.sourceMaps.length !== result.files.length) {
233238
throw new Error('Number of sourcemap files should be same as js files.');
234239
}
235240

tests/baselines/reference/inlineSourceMaps.js.map

Whitespace-only changes.

0 commit comments

Comments
 (0)