Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 55df0d0

Browse files
committed
test: fix current test only pass in local
1 parent 93fca67 commit 55df0d0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

test/__snapshots__/config.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Object {
2121
exports[`should match snapshot without any configuration 2`] = `
2222
Object {
2323
"alias": Object {
24-
"fonts": "/Users/billy/Desktop/vuepress-projects/vuepress-theme-blog/fonts",
24+
"fonts": "fonts",
2525
},
2626
"define": Object {
2727
"THEME_BLOG_PAGINATION_COMPONENT": "Pagination",

test/config.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
const vuepressThemeBlog = require('../')
66

7+
jest.mock('path', () => {
8+
return {
9+
resolve: (_, p) => p,
10+
}
11+
})
12+
713
test('should be a function', () => {
814
expect(typeof vuepressThemeBlog).toBe('function')
915
})

0 commit comments

Comments
 (0)