We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 728bfba commit 849e8c9Copy full SHA for 849e8c9
test/search.test.ts
@@ -1,13 +1,13 @@
1
-import path from 'pathe'
+import { relative, resolve } from 'pathe'
2
import { describe, expect, it } from 'vitest'
3
import { Context } from '../src/core/context'
4
5
-const root = path.resolve(__dirname, '../examples/vite-vue3')
+const root = resolve(__dirname, '../examples/vite-vue3')
6
7
function cleanup(data: any) {
8
return Object.values(data).map((e: any) => {
9
delete e.absolute
10
- e.from = path.relative(root, e.from).replace(/\\/g, '/')
+ e.from = relative(root, e.from).replace(/\\/g, '/')
11
return e
12
}).sort((a, b) => (a.as as string).localeCompare(b.as))
13
}
0 commit comments