From f94697ddd6785168f956203ee1e6d7d01498d58a Mon Sep 17 00:00:00 2001 From: Mitya Teryaew Date: Sun, 12 Feb 2017 22:47:25 +0300 Subject: [PATCH] feat(*): add ability to use .jsx extensions for tests --- lib/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/router.js b/lib/router.js index aaed1c5..2c9a2e8 100644 --- a/lib/router.js +++ b/lib/router.js @@ -14,7 +14,7 @@ function assetsRoot() { function testPathToChunkName(testPath) { const name = testPath .replace(/\//g, '-') - .replace(/\.js$/, '.bundle.js'); + .replace(/\.jsx?$/, '.bundle.js'); return encodeURI(name); }