From 58024b9794bb180be99797461b8a07e54385834b Mon Sep 17 00:00:00 2001 From: Kentaro Imai Date: Wed, 14 Aug 2024 03:22:40 +0900 Subject: [PATCH] Stop using symbolic links in tests Symbolic links might not work in some environments in Windows. --- test/integration/_create-project-rev.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/integration/_create-project-rev.js b/test/integration/_create-project-rev.js index 37fcb92..fcb18b1 100644 --- a/test/integration/_create-project-rev.js +++ b/test/integration/_create-project-rev.js @@ -5,12 +5,7 @@ const sourceDir = path.join(__dirname, "fixtures", "eleventy-project-rev"); module.exports = function(projectName) { let projectDir = path.join(__dirname, "fixtures", projectName); fs.rmSync(projectDir, { recursive: true, force: true }); - fs.mkdirSync(projectDir); - - let names = fs.readdirSync(sourceDir); - names.forEach(name => { - fs.symlinkSync(path.join(sourceDir, name), path.join(projectDir, name)); - }); + fs.cpSync(sourceDir, projectDir, { recursive: true }); return projectDir; };