mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
v2: prepare to move
This commit is contained in:
parent
dc7ef96849
commit
45736200b0
172 changed files with 0 additions and 0 deletions
21
v2/test/webpack/base.test.js
Normal file
21
v2/test/webpack/base.test.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import createBaseConfig from '@lib/webpack/base';
|
||||
import {validate} from 'webpack';
|
||||
import loadSetup from '../loadSetup';
|
||||
|
||||
describe('webpack base config', () => {
|
||||
test('simple', async () => {
|
||||
console.log = jest.fn();
|
||||
const props = await loadSetup('simple');
|
||||
const config = createBaseConfig(props).toConfig();
|
||||
const errors = validate(config);
|
||||
expect(errors.length).toBe(0);
|
||||
});
|
||||
|
||||
test('custom', async () => {
|
||||
console.log = jest.fn();
|
||||
const props = await loadSetup('custom');
|
||||
const config = createBaseConfig(props).toConfig();
|
||||
const errors = validate(config);
|
||||
expect(errors.length).toBe(0);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue