From 7b1df545232081dc8782285c52ee1eb534427f19 Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Fri, 18 Aug 2017 15:56:26 +0800 Subject: [PATCH] Config jest transform ignore path --- .jest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.jest.js b/.jest.js index 07234768a2..4457524eea 100644 --- a/.jest.js +++ b/.jest.js @@ -2,7 +2,7 @@ const libDir = process.env.LIB_DIR; const transformIgnorePatterns = [ '/dist/', - '/node_modules/', + 'node_modules\/[^/]+?\/(?!(es|node_modules)\/)', // Ignore modules without es dir ]; module.exports = {