Skip to content

Commit

Permalink
Set a default value for transformOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kulshekhar committed May 10, 2017
1 parent 3143465 commit ad3460d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocessor.ts
Expand Up @@ -10,7 +10,7 @@ const babelJest = require('babel-jest')
plugins: ['transform-es2015-modules-commonjs']
});

export function process(src, path, config, transformOptions) {
export function process(src, path, config, transformOptions: any = {}) {
const root = require('pkg-dir').sync();
// transformOptions.instrument is a proxy for collectCoverage
// https://github.com/kulshekhar/ts-jest/issues/201#issuecomment-300572902
Expand Down

0 comments on commit ad3460d

Please sign in to comment.