Skip to content

Commit

Permalink
test: fix test path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 21, 2024
1 parent 7dd7cf0 commit 9bb22cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/docs/.vuepress/plugins/testPlugin.js
Original file line number Diff line number Diff line change
@@ -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'),
}

0 comments on commit 9bb22cf

Please sign in to comment.