Skip to content

Commit 3bbb8c8

Browse files
author
yansen.lei
committed
test: add dirname to genId
1 parent 621a9ca commit 3bbb8c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function normalizeNewline(input: string): string {
165165
// see the logic at src/index.ts
166166
// in non-production environment, resourcePath is used to generate scope id
167167
export function genId(fixtureName: string): string {
168-
return hash(path.join('test', 'fixtures', fixtureName).replace(/\\/g, '/'))
168+
return hash(path.join(__dirname, 'fixtures', fixtureName).replace(/\\/g, '/'))
169169
}
170170

171171
export { mfs }

0 commit comments

Comments
 (0)