diff --git a/Makefile b/Makefile index f33bd64..b9b3f7b 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ example-toy: compile dogfood: compile rm -rf ./.perturb - node ./lib/cli -s lib --reporter quiet + node ./lib/cli -s lib dogfood-fork: compile rm -rf ./.perturb diff --git a/src/filters/filter.ts b/src/filters/filter.ts index ed48e67..b0b97ba 100644 --- a/src/filters/filter.ts +++ b/src/filters/filter.ts @@ -71,5 +71,5 @@ export function sourceNodeIs(text: string) { } export const isESModuleInterop = nodeSourceIncludes( - "Object.defineProperty(exports, '__esModule', { value: true });", + "Object.defineProperty(exports, '__esModule'", ); diff --git a/src/filters/index.ts b/src/filters/index.ts index 49e527f..580513c 100644 --- a/src/filters/index.ts +++ b/src/filters/index.ts @@ -3,12 +3,12 @@ import { MutantLocation } from "../types"; type LocationFilter = (m: MutantLocation) => boolean; -import { isUseStrict, isStringRequire } from "./filter"; +import { isUseStrict, isStringRequire, isESModuleInterop } from "./filter"; const filters: LocationFilter[] = [ (m: MutantLocation) => !isUseStrict(m.node), (m: MutantLocation) => !isStringRequire(m.node), - // (m: MutantLocation) => !isCallOfName("debug")(m.node), + (m: MutantLocation) => !isESModuleInterop(m.node), ]; export default R.allPass(filters);