From 16080ab1fc2acbcda17f97a78b802e79e9fb33e5 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Thu, 16 May 2019 08:52:28 -0400 Subject: [PATCH] chore: Fix tests PR #207 broke tests from #172 --- test/babel-plugin-istanbul.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/babel-plugin-istanbul.js b/test/babel-plugin-istanbul.js index 03405b9..cd36578 100644 --- a/test/babel-plugin-istanbul.js +++ b/test/babel-plugin-istanbul.js @@ -34,7 +34,7 @@ describe('babel-plugin-istanbul', function () { it('should instrument file if shouldSkip returns false', function () { var result = babel.transformFileSync('./fixtures/node_modules/should-cover.js', { plugins: [ - [makeVisitor({ types: babel.types }), { + [makeVisitor, { excludeNodeModules: false, exclude: ['node_modules/**'], include: ['fixtures/node_modules/should-cover.js'] @@ -47,7 +47,7 @@ describe('babel-plugin-istanbul', function () { it('should not instrument file if shouldSkip returns true', function () { var result = babel.transformFileSync('./fixtures/node_modules/should-not-cover.js', { plugins: [ - [makeVisitor({ types: babel.types }), { + [makeVisitor, { include: ['fixtures/node_modules/should-not-cover.js'] }] ]