mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
refactor: move test utils into test folder (#6777)
This commit is contained in:
parent
95ab08285b
commit
3e5da386ce
|
|
@ -6,12 +6,12 @@
|
|||
*/
|
||||
|
||||
import path from 'path';
|
||||
import {load} from './index';
|
||||
import {load} from '../index';
|
||||
import type {Props} from '@docusaurus/types';
|
||||
|
||||
// Helper methods to setup dummy/fake projects.
|
||||
export default async function loadSetup(name: string): Promise<Props> {
|
||||
const fixtures = path.join(__dirname, '__tests__', '__fixtures__');
|
||||
const fixtures = path.join(__dirname, '__fixtures__');
|
||||
const simpleSite = path.join(fixtures, 'simple-site');
|
||||
const customSite = path.join(fixtures, 'custom-site');
|
||||
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
import {validate} from 'webpack';
|
||||
|
||||
import createClientConfig from '../client';
|
||||
import loadSetup from '../../server/loadSetup';
|
||||
import loadSetup from '../../server/__tests__/testUtils';
|
||||
|
||||
describe('webpack dev config', () => {
|
||||
test('simple', async () => {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
import {validate} from 'webpack';
|
||||
|
||||
import createServerConfig from '../server';
|
||||
import loadSetup from '../../server/loadSetup';
|
||||
import loadSetup from '../../server/__tests__/testUtils';
|
||||
|
||||
describe('webpack production config', () => {
|
||||
test('simple', async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue