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:
parent
b250beaec9
commit
d6b438cd7b
@ -1,12 +1,4 @@
|
||||
module.exports = {
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
tsconfig: 'tsconfig.json',
|
||||
},
|
||||
},
|
||||
transform: {
|
||||
'^.+\\.ts$': 'ts-jest',
|
||||
},
|
||||
testRegex: '/test/(unit|integration)/.*\\.test\\.ts$',
|
||||
moduleFileExtensions: [
|
||||
'ts',
|
||||
@ -21,4 +13,5 @@ module.exports = {
|
||||
},
|
||||
// Slower machines had problems calling the WebSocket integration callbacks on time
|
||||
testTimeout: 60000,
|
||||
preset: 'ts-jest',
|
||||
};
|
||||
|
3824
package-lock.json
generated
3824
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -171,10 +171,10 @@
|
||||
"@commitlint/config-conventional": "^17.0.3",
|
||||
"@inrupt/solid-client-authn-core": "^1.12.2",
|
||||
"@inrupt/solid-client-authn-node": "^1.12.2",
|
||||
"@microsoft/tsdoc-config": "^0.16.1",
|
||||
"@tsconfig/node14": "^1.0.1",
|
||||
"@microsoft/tsdoc-config": "^0.16.2",
|
||||
"@tsconfig/node14": "^1.0.3",
|
||||
"@types/cheerio": "^0.22.31",
|
||||
"@types/jest": "^27.5.2",
|
||||
"@types/jest": "^29.5.1",
|
||||
"@types/set-cookie-parser": "^2.4.2",
|
||||
"@types/supertest": "^2.0.12",
|
||||
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
||||
@ -192,17 +192,17 @@
|
||||
"eslint-plugin-unicorn": "^37.0.1",
|
||||
"eslint-plugin-unused-imports": "^2.0.0",
|
||||
"husky": "^4.3.8",
|
||||
"jest": "^27.5.1",
|
||||
"jest-rdf": "^1.7.0",
|
||||
"jest": "^29.5.0",
|
||||
"jest-rdf": "^1.8.0",
|
||||
"markdownlint-cli2": "^0.5.1",
|
||||
"node-mocks-http": "^1.11.0",
|
||||
"nodemon": "^2.0.19",
|
||||
"set-cookie-parser": "^2.5.1",
|
||||
"simple-git": "^3.12.0",
|
||||
"supertest": "^6.2.4",
|
||||
"ts-jest": "^27.1.5",
|
||||
"ts-jest": "^29.1.0",
|
||||
"ts-node": "^10.9.1",
|
||||
"typedoc": "^0.23.10",
|
||||
"typescript": "^4.7.4"
|
||||
"typedoc": "^0.24.6",
|
||||
"typescript": "^5.0.4"
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user