Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit abcc9fe

Browse files
authored
Merge pull request #539 from kazk/fix/ts-karma-errors
Fix karma-typescript errors
2 parents 0ad508d + f4f11e7 commit abcc9fe

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

lib/runners/typescript.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ function prepareKarma(opts, interfaceType, runCode, fail) {
152152
'/runner/node_modules/*',
153153
],
154154
},
155-
}
155+
},
156+
coverageOptions: {
157+
// A boolean indicating whether the code should be instrumented,
158+
// set this property to false to see the original Typescript code when debugging.
159+
instrumentation: false,
160+
},
156161
},
157162
};
158163

test/runners/typescript_spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
var expect = require('chai').expect;
22
var runner = require('../runner');
3+
var exec = require('child_process').exec;
34

45

56
describe('typescript runner', function() {
7+
afterEach(function cleanup(done) {
8+
exec('rm -f /workspace/*.ts /workspace/*.js /workspace/*.txt /workspace/*.css', function(err) {
9+
if (err) return done(err);
10+
done();
11+
});
12+
});
13+
614
runner.assertCodeExamples('typescript');
715

816
describe('.run', function() {

0 commit comments

Comments
 (0)