mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-11 08:07:26 +02:00
chore: upgrade dependencies (#7993)
* chore: upgrade dependencies * Fix lint * Bump more * Fix lint
This commit is contained in:
parent
38dd7cfa04
commit
275f509d13
35 changed files with 1779 additions and 1788 deletions
|
@ -104,7 +104,7 @@ describe('generate', () => {
|
|||
|
||||
it('works with existing cache', async () => {
|
||||
await generate(__dirname, 'foo', 'bar');
|
||||
expect(writeMock).toBeCalledTimes(1);
|
||||
expect(writeMock).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it('works with existing file but no cache', async () => {
|
||||
|
@ -112,7 +112,7 @@ describe('generate', () => {
|
|||
// @ts-expect-error: seems the typedef doesn't understand overload
|
||||
readMock.mockImplementationOnce(() => Promise.resolve('bar'));
|
||||
await generate(__dirname, 'baz', 'bar');
|
||||
expect(writeMock).toBeCalledTimes(1);
|
||||
expect(writeMock).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it('works when force skipping cache', async () => {
|
||||
|
|
|
@ -120,7 +120,7 @@ describe('getFileCommitDate', () => {
|
|||
age: 'newest',
|
||||
includeAuthor: true,
|
||||
}),
|
||||
).toThrowError(FileNotTrackedError);
|
||||
).toThrow(FileNotTrackedError);
|
||||
});
|
||||
it('throws when file not found', async () => {
|
||||
expect(() =>
|
||||
|
@ -128,7 +128,7 @@ describe('getFileCommitDate', () => {
|
|||
age: 'newest',
|
||||
includeAuthor: true,
|
||||
}),
|
||||
).toThrowError(
|
||||
).toThrow(
|
||||
/Failed to retrieve git history for ".*nonexistent.txt" because the file does not exist./,
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue