mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-05 21:27:24 +02:00
19 lines
487 B
JavaScript
19 lines
487 B
JavaScript
import path from 'path';
|
|
import load from '@lib/load';
|
|
|
|
// Helper methods to setup dummy/ fake projects
|
|
const loadSetup = async name => {
|
|
const simpleWebsite = path.join(__dirname, '__fixtures__', 'simple-website');
|
|
const customWebsite = path.join(__dirname, '__fixtures__', 'custom-website');
|
|
|
|
switch (name) {
|
|
case 'simple':
|
|
return load(simpleWebsite);
|
|
case 'custom':
|
|
return load(customWebsite);
|
|
default:
|
|
return {};
|
|
}
|
|
};
|
|
|
|
export default loadSetup;
|