mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-05 21:27:24 +02:00
15 lines
427 B
JavaScript
15 lines
427 B
JavaScript
const path = require('path');
|
|
const loadConfig = require('../../lib/loader/config');
|
|
|
|
describe('loadConfig', () => {
|
|
const simpleDir = path.join(__dirname, '__fixtures__', 'simple');
|
|
const customDir = path.join(__dirname, '__fixtures__', 'custom');
|
|
|
|
test('simple', () => {
|
|
expect(loadConfig(simpleDir)).toMatchSnapshot();
|
|
});
|
|
|
|
test('custom', () => {
|
|
expect(loadConfig(customDir)).toMatchSnapshot();
|
|
});
|
|
});
|