Skip to content

Commit 72ceaa4

Browse files
Bump jest and related dependencies
Signed-off-by: Wouter Termont <[email protected]>
1 parent 680c7cb commit 72ceaa4

File tree

7 files changed

+1050
-1059
lines changed

7 files changed

+1050
-1059
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
},
5656
"devDependencies": {
5757
"@rubensworks/eslint-config": "^1.0.1",
58-
"@types/jest": "^27.0.0",
58+
"@types/jest": "^29.0.0",
5959
"@types/stream-to-array": "^2.3.0",
6060
"@types/streamify-string": "^1.0.0",
6161
"@typescript-eslint/eslint-plugin": "^5.0.0",
@@ -67,8 +67,9 @@
6767
"eslint-plugin-jest": "^26.0.0",
6868
"eslint-plugin-tsdoc": "^0.2.7",
6969
"eslint-plugin-unused-imports": "^2.0.0",
70-
"jest": "^27.0.1",
71-
"jest-rdf": "^1.7.0",
70+
"jest": "^29.0.0",
71+
"jest-mock": "^29.0.0",
72+
"jest-rdf": "^1.8.0",
7273
"jshint": "^2.1.10",
7374
"manual-git-changelog": "^1.0.1",
7475
"n3": "^1.11.1",
@@ -77,7 +78,7 @@
7778
"simple-copy": "^2.2.1",
7879
"stream-to-array": "^2.3.0",
7980
"streamify-string": "^1.0.1",
80-
"ts-jest": "^27.0.1",
81+
"ts-jest": "^29.1.0",
8182
"ts-loader": "^9.4.1",
8283
"typescript": "^5.0.0",
8384
"webpack": "^5.75.0",

test/integration/instantiateFile-test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ const quad = require('rdf-quad');
99

1010
const Hello = require('../../__mocks__/helloworld').Hello;
1111

12+
jest.mock('winston', () => ({
13+
format: {
14+
colorize: jest.fn(),
15+
combine: jest.fn(),
16+
label: jest.fn(),
17+
timestamp: jest.fn(),
18+
printf: jest.fn(),
19+
},
20+
createLogger: jest.fn().mockReturnValue({
21+
warn: jest.fn(),
22+
info: jest.fn(),
23+
}),
24+
transports: {
25+
Console: jest.fn(),
26+
},
27+
}));
28+
1229
describe('construction with component configs as files', () => {
1330
let moduleState: IModuleState;
1431
let manager: ComponentsManager<any>;

test/integration/instantiateResourceConfigComponent-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { mocked } from 'jest-mock';
12
import type { Resource, RdfObjectLoader } from 'rdf-object';
2-
import { mocked } from 'ts-jest/utils';
33
import { ComponentsManager } from '../../lib/ComponentsManager';
44
import type { IConfigConstructorPool } from '../../lib/construction/IConfigConstructorPool';
55
import type { IConstructionSettings } from '../../lib/construction/IConstructionSettings';

test/integration/instantiateResourceConfigComponentMapped-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { mocked } from 'jest-mock';
12
import type { Resource, RdfObjectLoader } from 'rdf-object';
2-
import { mocked } from 'ts-jest/utils';
33
import { ComponentsManager } from '../../lib/ComponentsManager';
44
import type { IConfigConstructorPool } from '../../lib/construction/IConfigConstructorPool';
55
import type { IConstructionSettings } from '../../lib/construction/IConstructionSettings';

test/unit/loading/ComponentsManager-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from 'fs';
2+
import { mocked } from 'jest-mock';
23
import type { Resource } from 'rdf-object';
34
import { RdfObjectLoader } from 'rdf-object';
4-
import { mocked } from 'ts-jest/utils';
55
import type { Logger } from 'winston';
66
import { ComponentsManager } from '../../../lib/ComponentsManager';
77
import type { IConfigConstructorPool } from '../../../lib/construction/IConfigConstructorPool';

test/unit/loading/ModuleStateBuilder-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mocked } from 'ts-jest/utils';
1+
import { mocked } from 'jest-mock';
22
import { ModuleStateBuilder } from '../../../lib/loading/ModuleStateBuilder';
33

44
// Import syntax only works in Node > 12

0 commit comments

Comments
 (0)