Skip to content

Commit 0a1ae2a

Browse files
committed
test: Add a test for themes from dependencies using Layout.vue as entry point
1 parent 41b5cfb commit 0a1ae2a

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

__mocks__/vuepress-theme-without-index/Layout.vue

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module.exports = {}
2+
// This file is just for jest.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "vuepress-theme-without-index",
3+
"main": "Layout.vue"
4+
}

packages/@vuepress/core/lib/node/__tests__/prepare/App.spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ describe('App', () => {
1818
theme: '@vuepress/default',
1919
emp: docsTempPath
2020
})
21+
await app.process()
2122
expect(app.sourceDir).toBe(docsPath)
2223
}))
2324
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
title: 'Hello VuePress',
3+
description: '# Hello, VuePress!',
4+
theme: 'vuepress-theme-without-index'
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Hello, VuePress!

0 commit comments

Comments
 (0)