improve structure & switch to yarn

This commit is contained in:
Rene Haas
2020-09-10 12:16:21 +02:00
parent 43efd22c47
commit 30a5a11862
46 changed files with 9070 additions and 14897 deletions
+10
View File
@@ -0,0 +1,10 @@
const path = require('path');
const jestPuppeteerConfig = require('../jest-puppeteer.config.base');
module.exports = {
process: (src, filePath, config) => {
const deploymentPath = path.relative(path.dirname(config.globals.baseConfig), filePath);
const split = deploymentPath.split(path.sep);
return `module.exports = ${JSON.stringify(`http://localhost:${jestPuppeteerConfig.server.port}/${path.posix.join(...split)}`)}`;
},
};