From 2d75d8164e2004c922029f1110ac703565f9dca3 Mon Sep 17 00:00:00 2001 From: Jason Pickens Date: Thu, 28 Jan 2021 14:41:24 +1300 Subject: [PATCH] feat: copy missing or new test templates --- src/tasks/templates.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/tasks/templates.js b/src/tasks/templates.js index 0263dda..ecce5f7 100644 --- a/src/tasks/templates.js +++ b/src/tasks/templates.js @@ -1,6 +1,5 @@ const path = require('path'); -const pathExists = require('path-exists'); const { copyFiles, json, template } = require('mrm-core'); // These files will be overwritten without any confirmation @@ -53,11 +52,7 @@ module.exports = () => { copyFiles(templatesDir, files); - pathExists('./test').then((exists) => { - if (!exists) { - copyFiles(templatesDir, testFiles, { overwrite: false }); - } - }); + copyFiles(templatesDir, testFiles, { overwrite: false }); for (const tmpl of dynamicTemplates) { const file = template(