mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
test: add easy setup for test cases
This commit is contained in:
parent
b477863a30
commit
31d333b82f
69 changed files with 3387 additions and 24 deletions
|
@ -3,11 +3,7 @@ import path from 'path';
|
|||
|
||||
describe('loadPages', () => {
|
||||
test('valid pages', async () => {
|
||||
const pagesDir = path.join(
|
||||
__dirname,
|
||||
'__fixtures__',
|
||||
'simple-pages'
|
||||
);
|
||||
const pagesDir = path.join(__dirname, '__fixtures__', 'simple-pages');
|
||||
const pagesData = await loadPages(pagesDir);
|
||||
expect(pagesData).toMatchSnapshot();
|
||||
expect(pagesData).not.toBeNull();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue