diff --git a/jest-puppeteer.config.js b/jest-puppeteer.config.js index f34344e..95f149c 100644 --- a/jest-puppeteer.config.js +++ b/jest-puppeteer.config.js @@ -4,13 +4,13 @@ module.exports = { launch: { headless: true, slowMo: false, - devtools: true, + devtools: true }, server: [ { command: `npm run build --prefix=${localModuleAppPath} && npm run start --prefix=${localModuleAppPath}`, launchTimeout: 50000, - port: 3000, - }, - ], + port: 3000 + } + ] }; diff --git a/jest.config.js b/jest.config.js index 06825b1..ee1b501 100644 --- a/jest.config.js +++ b/jest.config.js @@ -5,5 +5,5 @@ module.exports = { globalTeardown: 'jest-environment-puppeteer/teardown', testEnvironment: 'jest-environment-puppeteer', testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'] }; diff --git a/src/next-transpile-modules.js b/src/next-transpile-modules.js index 7689d71..ec8255e 100644 --- a/src/next-transpile-modules.js +++ b/src/next-transpile-modules.js @@ -20,7 +20,7 @@ const regexEqual = (x, y) => { const generateIncludes = (modules) => { return [ new RegExp(`(${modules.map(safePath).join('|')})$`), - new RegExp(`(${modules.map(safePath).join('|')})${PATH_DELIMITER}(?!.*node_modules)`), + new RegExp(`(${modules.map(safePath).join('|')})${PATH_DELIMITER}(?!.*node_modules)`) ]; }; @@ -28,7 +28,7 @@ const generateExcludes = (modules) => { return [ new RegExp( `node_modules${PATH_DELIMITER}(?!(${modules.map(safePath).join('|')})(${PATH_DELIMITER}|$)(?!.*node_modules))` - ), + ) ]; }; @@ -81,7 +81,7 @@ const withTmInitializer = (transpileModules = []) => { config.module.rules.push({ test: /\.+(js|jsx|mjs|ts|tsx)$/, loader: options.defaultLoaders.babel, - include: includes, + include: includes }); // Support CSS modules + global in node_modules @@ -163,7 +163,7 @@ const withTmInitializer = (transpileModules = []) => { } return config; - }, + } }); };