From 8f6538f33a039cac5761a963ec508d882ebf8c2b Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Sun, 14 Mar 2021 17:57:28 +0000 Subject: [PATCH] make path windows friendly --- packages/server/src/api/routes/tests/component.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/component.spec.js b/packages/server/src/api/routes/tests/component.spec.js index 926efc51e3..6cf8d8ae72 100644 --- a/packages/server/src/api/routes/tests/component.spec.js +++ b/packages/server/src/api/routes/tests/component.spec.js @@ -21,7 +21,8 @@ describe("/component", () => { for (let library of libraries) { let appDirectory = resolve(budibaseAppsDir(), appId, "node_modules", library, "package") fs.mkdirSync(appDirectory, { recursive: true }) - const file = require.resolve(library).split("dist/index.js")[0] + manifestFile + + const file = require.resolve(library).split(join("dist", "index.js"))[0] + manifestFile fs.copyFileSync(file, join(appDirectory, manifestFile)) } }