diff --git a/Cakefile b/Cakefile index c3fa678..b8e901a 100755 --- a/Cakefile +++ b/Cakefile @@ -12,6 +12,7 @@ task 'generate', "Generate Jest preset JSON config.", => testPathIgnorePatterns: ['node_modules', 'fixtures'] transform: [glob]: package_json.name mapCoverage: true + setupFilesAfterEnv: ['./index'] package_json.jest.transform = [glob]: './index' fs.writeFileSync 'package.json', JSON.stringify package_json, null, 2 diff --git a/index.coffee b/index.coffee index 3f62f09..bdcf114 100755 --- a/index.coffee +++ b/index.coffee @@ -11,3 +11,8 @@ exports.process = (source, file) => presets: ['jest'] compile source, { bare: true, inlineMap: true, transpile } + +if describe? + override = describe + # coffeelint: disable=no_backticks FIXME + `describe = (name, fn) => override (name, () => { fn() })`