Skip to content

Commit 691f86d

Browse files
chore(deps): update jest monorepo (major) (#1134)
* chore(deps): update jest monorepo * F --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
1 parent aefe338 commit 691f86d

23 files changed

Lines changed: 948 additions & 723 deletions

File tree

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,34 +38,34 @@
3838
"@changesets/changelog-github": "0.5.1",
3939
"@changesets/cli": "2.29.7",
4040
"@theguild/prettier-config": "3.0.1",
41-
"@types/jest": "28.1.8",
41+
"@types/jest": "30.0.0",
4242
"@types/node": "24.10.0",
4343
"@typescript-eslint/eslint-plugin": "8.46.3",
4444
"@typescript-eslint/parser": "8.46.3",
45-
"babel-jest": "28.1.3",
45+
"babel-jest": "30.2.0",
4646
"bob-the-bundler": "7.0.1",
4747
"cross-env": "10.1.0",
4848
"eslint": "9.39.1",
4949
"eslint-plugin-import": "2.32.0",
5050
"graphql": "16.12.0",
5151
"husky": "9.1.7",
52-
"jest": "28.1.3",
53-
"jest-docblock": "28.1.1",
52+
"jest": "30.2.0",
53+
"jest-docblock": "30.2.0",
5454
"jest-junit": "16.0.0",
5555
"lint-staged": "16.2.6",
5656
"patch-package": "8.0.1",
5757
"prettier": "3.6.2",
5858
"rimraf": "6.1.0",
59-
"ts-jest": "28.0.8",
59+
"ts-jest": "29.4.5",
6060
"ts-node": "10.9.2",
6161
"tslib": "2.8.1",
6262
"typescript": "5.9.3"
6363
},
6464
"resolutions": {
65-
"babel-jest": "28.1.3",
65+
"babel-jest": "30.2.0",
6666
"graphql": "16.12.0",
6767
"graphql-language-service-interface": "2.10.2",
68-
"jest-runner": "28.1.3",
68+
"jest-runner": "30.2.0",
6969
"ts-node": "10.9.2"
7070
},
7171
"lint-staged": {

packages/plugins/flow/flow/tests/__snapshots__/flow.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`Flow Plugin Arguments Should add custom prefix for mutation arguments 1`] = `
44
"/** All built-in and custom scalars, mapped to their actual values */

packages/plugins/flow/flow/tests/flow.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ describe('Flow Plugin', () => {
748748
const result = await plugin(schema, [], {}, { outputFile: '' });
749749

750750
expect(result.content).toMatchSnapshot();
751-
expect(result).not.toContain('export type A = any;');
751+
expect(result.content).not.toContain('export type A = any;');
752752

753753
validateFlow(result);
754754
});
@@ -969,10 +969,10 @@ describe('Flow Plugin', () => {
969969
}
970970
`);
971971

972-
const content = await plugin(schema, [], { skipTypename: true }, { outputFile: '' });
973-
expect(content).not.toContain('__typename');
972+
const result = await plugin(schema, [], { skipTypename: true }, { outputFile: '' });
973+
expect(result.content).not.toContain('__typename');
974974

975-
validateFlow(content);
975+
validateFlow(result);
976976
});
977977

978978
it('should generate arguments types correctly with args', async () => {

packages/plugins/flow/operations/tests/__snapshots__/flow-documents.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`Flow Operations Plugin Import namespace Should handle "namespacedImportName" and add it when specified 1`] = `
44
"// @flow

packages/plugins/flow/resolvers/tests/__snapshots__/flow-resolvers.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`Flow Resolvers Plugin Should generate basic type resolvers 1`] = `
44
{

packages/plugins/java/apollo-android/tests/__snapshots__/operations.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`Operations Visitor Should handle Query correctly 1`] = `
44
"package app.test.generated.graphql;

packages/plugins/other/hasura-allow-list/tests/hasura-allow-list.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -461,17 +461,17 @@ describe('Hasura allow list', () => {
461461
};
462462
const error1 = `[hasura allow list plugin] Configuration error: configuration property config_version has been renamed configVersion. Please update your configuration accordingly.`;
463463
// test for renamed config_version config option
464-
await expect(
465-
plugin(null, documents, config1 as HasuraAllowListPluginConfig),
466-
).rejects.toThrowError(error1);
464+
await expect(plugin(null, documents, config1 as HasuraAllowListPluginConfig)).rejects.toThrow(
465+
error1,
466+
);
467467

468468
const config2 = {
469469
collection_name: 'custom_name',
470470
};
471471
// test for renamed collection_name config option
472472
const error2 = `[hasura allow list plugin] Configuration error: configuration property collection_name has been renamed collectionName. Please update your configuration accordingly.`;
473-
await expect(
474-
plugin(null, documents, config2 as HasuraAllowListPluginConfig),
475-
).rejects.toThrowError(error2);
473+
await expect(plugin(null, documents, config2 as HasuraAllowListPluginConfig)).rejects.toThrow(
474+
error2,
475+
);
476476
});
477477
});

packages/plugins/typescript/apollo-client-helpers/tests/__snapshots__/apollo-client-helpers.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`apollo-client-helpers Should output typePolicies object correctly 1`] = `
44
"import { FieldPolicy, FieldReadFunction, TypePolicies, TypePolicy } from '@apollo/client/cache';

packages/plugins/typescript/generic-sdk/tests/__snapshots__/generic-sdk.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`generic-sdk sdk Should generate a correct wrap method 1`] = `
44
"export type Maybe<T> = T | null;

packages/plugins/typescript/graphql-apollo/tests/__snapshots__/graphql-apollo.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`apollo-client sdk Should generate Sdk correctly 1`] = `
44
"export type Maybe<T> = T | null;

0 commit comments

Comments
 (0)