From 9bb22cf15e59de59188e5a7ec56d83cfdb9760a9 Mon Sep 17 00:00:00 2001 From: Mister-Hope Date: Tue, 21 May 2024 14:20:22 +0800 Subject: [PATCH] test: fix test path on windows --- e2e/docs/.vuepress/plugins/testPlugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/docs/.vuepress/plugins/testPlugin.js b/e2e/docs/.vuepress/plugins/testPlugin.js index 15fd7de13e..502720e9b6 100644 --- a/e2e/docs/.vuepress/plugins/testPlugin.js +++ b/e2e/docs/.vuepress/plugins/testPlugin.js @@ -1,8 +1,8 @@ -import { createRequire } from 'node:module' +import { getDirname, path } from 'vuepress/utils' -const require = createRequire(import.meta.url) +const __dirname = getDirname(import.meta.url) export const testPlugin = { name: 'test-plugin', - clientConfigFile: require.resolve('./clientConfig.js'), + clientConfigFile: path.resolve(__dirname, './clientConfig.js'), }