Skip to content

Commit b53e989

Browse files
committed
Emit declarations and sourcemaps in rwc test runner
1 parent 0636a06 commit b53e989

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/harness/harness.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,12 @@ module Harness {
600600
result.files.forEach(file => {
601601
ioHost.writeFile(file.fileName, file.code, false);
602602
});
603+
result.declFilesCode.forEach(file => {
604+
ioHost.writeFile(file.fileName, file.code, false);
605+
});
606+
result.sourceMaps.forEach(file => {
607+
ioHost.writeFile(file.fileName, file.code, false);
608+
});
603609
}, () => { }, this.compileOptions);
604610
}
605611

src/harness/rwcRunner.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,12 @@ module RWC {
189189
}, false, baselineOpts);
190190
});
191191

192-
/*
193192
it('has the expected source maps', () => {
194193
Harness.Baseline.runBaseline('has the expected source maps', baseName + '.map', () => {
195194
var result = collateOutputs(emitterIOHost, fn => fn.substr(fn.length - '.map'.length) === '.map');
196195
return result.length > 0 ? result : null;
197196
}, false, baselineOpts);
198197
});
199-
*/
200198

201199
it('has the expected errors', () => {
202200
Harness.Baseline.runBaseline('has the expected errors', baseName + '.errors.txt', () => {

0 commit comments

Comments
 (0)