mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 16:47:26 +02:00
refactor(core): reorganize files (#7042)
* refactor(core): reorganize files * fix types
This commit is contained in:
parent
85a79fd9b9
commit
5fb09a2946
61 changed files with 1089 additions and 1028 deletions
|
@ -168,7 +168,7 @@ describe('simple site', () => {
|
|||
loadSiteOptions: {options: Partial<PluginOptions>} = {options: {}},
|
||||
) {
|
||||
const siteDir = path.join(fixtureDir, 'simple-site');
|
||||
const context = await loadContext(siteDir);
|
||||
const context = await loadContext({siteDir});
|
||||
const options = {
|
||||
id: DEFAULT_PLUGIN_ID,
|
||||
...DEFAULT_OPTIONS,
|
||||
|
@ -523,7 +523,8 @@ describe('versioned site', () => {
|
|||
},
|
||||
) {
|
||||
const siteDir = path.join(fixtureDir, 'versioned-site');
|
||||
const context = await loadContext(siteDir, {
|
||||
const context = await loadContext({
|
||||
siteDir,
|
||||
locale: loadSiteOptions.locale,
|
||||
});
|
||||
const options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue