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

Commit

Permalink
Merge pull request #539 from kazk/fix/ts-karma-errors
Browse files Browse the repository at this point in the history
Fix karma-typescript errors
  • Loading branch information
jhoffner authored Nov 1, 2017
2 parents 0ad508d + f4f11e7 commit abcc9fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/runners/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,12 @@ function prepareKarma(opts, interfaceType, runCode, fail) {
'/runner/node_modules/*',
],
},
}
},
coverageOptions: {
// A boolean indicating whether the code should be instrumented,
// set this property to false to see the original Typescript code when debugging.
instrumentation: false,
},
},
};

Expand Down
8 changes: 8 additions & 0 deletions test/runners/typescript_spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
var expect = require('chai').expect;
var runner = require('../runner');
var exec = require('child_process').exec;


describe('typescript runner', function() {
afterEach(function cleanup(done) {
exec('rm -f /workspace/*.ts /workspace/*.js /workspace/*.txt /workspace/*.css', function(err) {
if (err) return done(err);
done();
});
});

runner.assertCodeExamples('typescript');

describe('.run', function() {
Expand Down

0 comments on commit abcc9fe

Please sign in to comment.