chore: upgrade dependencies (#7993)

* chore: upgrade dependencies

* Fix lint

* Bump more

* Fix lint
This commit is contained in:
Joshua Chen 2022-09-08 01:31:53 -04:00 committed by GitHub
parent 38dd7cfa04
commit 275f509d13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 1779 additions and 1788 deletions

View file

@ -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 () => {

View file

@ -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./,
);
});