From af3463c40fae2225856d677507d72d0228f0f755 Mon Sep 17 00:00:00 2001 From: Piyush Patel Date: Tue, 5 Dec 2023 18:57:27 +0530 Subject: [PATCH] Fix the directory path --- frontend/tests/constants/DocumentConstants.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/tests/constants/DocumentConstants.ts b/frontend/tests/constants/DocumentConstants.ts index 1ac5fef3..2f46afa5 100644 --- a/frontend/tests/constants/DocumentConstants.ts +++ b/frontend/tests/constants/DocumentConstants.ts @@ -1,8 +1,10 @@ import path from 'path'; +import { fileURLToPath } from 'url'; // Define the base directory for test data -const baseTestDataDirectory = - 'D:/Etenlabs/Repos/Latest/crowd.rocks/frontend/tests/testData/'; +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const baseTestDataDirectory = path.join(__dirname, '../testData/'); // Define the constants const constants = {