mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Emit declarations and sourcemaps in rwc test runner
This commit is contained in:
@@ -600,6 +600,12 @@ module Harness {
|
||||
result.files.forEach(file => {
|
||||
ioHost.writeFile(file.fileName, file.code, false);
|
||||
});
|
||||
result.declFilesCode.forEach(file => {
|
||||
ioHost.writeFile(file.fileName, file.code, false);
|
||||
});
|
||||
result.sourceMaps.forEach(file => {
|
||||
ioHost.writeFile(file.fileName, file.code, false);
|
||||
});
|
||||
}, () => { }, this.compileOptions);
|
||||
}
|
||||
|
||||
|
||||
@@ -189,14 +189,12 @@ module RWC {
|
||||
}, false, baselineOpts);
|
||||
});
|
||||
|
||||
/*
|
||||
it('has the expected source maps', () => {
|
||||
Harness.Baseline.runBaseline('has the expected source maps', baseName + '.map', () => {
|
||||
var result = collateOutputs(emitterIOHost, fn => fn.substr(fn.length - '.map'.length) === '.map');
|
||||
return result.length > 0 ? result : null;
|
||||
}, false, baselineOpts);
|
||||
});
|
||||
*/
|
||||
|
||||
it('has the expected errors', () => {
|
||||
Harness.Baseline.runBaseline('has the expected errors', baseName + '.errors.txt', () => {
|
||||
|
||||
Reference in New Issue
Block a user