From 455fd72db47795ec9239df597eed043486f031ec Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 7 Apr 2025 12:20:40 +0200 Subject: [PATCH] fix: refs #8698 update import path resolution to read jsconfig.json using fs --- test/cypress/docker/find/resolve-import-path.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/cypress/docker/find/resolve-import-path.js b/test/cypress/docker/find/resolve-import-path.js index b52dfa06505..38c225fd297 100644 --- a/test/cypress/docker/find/resolve-import-path.js +++ b/test/cypress/docker/find/resolve-import-path.js @@ -1,6 +1,7 @@ +import fs from 'fs'; import path from 'path'; const rootDir = process.cwd(); -import config from '../../../../jsconfig.json' with { type: 'json' }; +const config = JSON.parse(fs.readFileSync('jsconfig.json', 'utf-8')); const { paths, baseUrl } = config.compilerOptions; function resolveImportPath(importPath, fileBase) {