mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-26 21:18:47 +02:00
chore: upgrade TypeScript & other ESLint related deps (#5963)
* chore: upgrade ESLint related deps * Upgrade TS * Fix lock * Bump Babel * Update config
This commit is contained in:
parent
2f7d6fea1e
commit
0374426ce3
104 changed files with 2662 additions and 2487 deletions
|
@ -600,11 +600,9 @@ describe('versioned site, pluginId=default', () => {
|
|||
test('readVersionsMetadata versioned site with invalid versions.json file', async () => {
|
||||
const {defaultOptions, defaultContext} = await loadSite();
|
||||
|
||||
const mock = jest.spyOn(JSON, 'parse').mockImplementationOnce(() => {
|
||||
return {
|
||||
invalid: 'json',
|
||||
};
|
||||
});
|
||||
const mock = jest.spyOn(JSON, 'parse').mockImplementationOnce(() => ({
|
||||
invalid: 'json',
|
||||
}));
|
||||
|
||||
expect(() => {
|
||||
readVersionsMetadata({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue