chore: Update jest and TypeScript dependencies

This commit is contained in:
Joachim Van Herwegen
2023-04-26 13:50:40 +02:00
parent b250beaec9
commit d6b438cd7b
6 changed files with 1615 additions and 2248 deletions

View File

@@ -7,7 +7,8 @@ import {
instantiateFromConfig,
} from './Config';
jest.useFakeTimers('legacy');
// These `doNotFake` settings are necessary to make sure the server still works
jest.useFakeTimers({ doNotFake: [ 'nextTick' ]});
const port = getPort('ExpiringDataCleanup');
const baseUrl = `http://localhost:${port}/`;

View File

@@ -18,7 +18,8 @@ import { guardedStreamFrom } from '../../src/util/StreamUtil';
import { PIM, RDF } from '../../src/util/Vocabularies';
import { SimpleSuffixStrategy } from '../util/SimpleSuffixStrategy';
import { flushPromises } from '../util/Util';
jest.useFakeTimers('legacy');
jest.useFakeTimers();
describe('A LockingResourceStore', (): void => {
let path: string;

View File

@@ -126,10 +126,6 @@ describe('A RedisLocker', (): void => {
jest.clearAllTimers();
});
afterAll(async(): Promise<void> => {
jest.restoreAllMocks();
});
it('will fill in default arguments when constructed with empty arguments.', (): void => {
expect((): ReadWriteLocker => new RedisLocker()).toBeDefined();
expect((): ReadWriteLocker => new RedisLocker()).not.toThrow();
@@ -454,10 +450,6 @@ describe('A RedisLocker', (): void => {
jest.clearAllTimers();
});
afterAll(async(): Promise<void> => {
jest.restoreAllMocks();
});
it('will fill in default arguments when constructed with empty arguments.', (): void => {
expect((): ResourceLocker => new RedisLocker()).toBeDefined();
expect((): ResourceLocker => new RedisLocker()).not.toThrow();