fix(v2): do not show plugin data path (#1861)

* fix(v2): do not show plugin data path

* test fix

* nits
This commit is contained in:
Endi 2019-10-21 00:58:22 +07:00 committed by Yangshun Tay
parent 5bd6284f18
commit 2c1012b9ec
10 changed files with 58 additions and 31 deletions

View file

@ -13,6 +13,7 @@ import {LoadContext} from '@docusaurus/types';
describe('loadDocs', () => {
test('simple website', async () => {
const siteDir = path.join(__dirname, '__fixtures__', 'website');
const generatedFilesDir: string = path.resolve(siteDir, '.docusaurus');
const siteConfig = {
title: 'Hello',
baseUrl: '/',
@ -21,6 +22,7 @@ describe('loadDocs', () => {
const context = {
siteDir,
siteConfig,
generatedFilesDir,
} as LoadContext;
const sidebarPath = path.join(siteDir, 'sidebars.json');
const pluginPath = 'docs';