mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Update jest and TypeScript dependencies
This commit is contained in:
@@ -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}/`;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user