Skip to content

Commit f89bee9

Browse files
committed
Remove all jest commands
1 parent c3918f6 commit f89bee9

42 files changed

Lines changed: 45 additions & 85 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/plugins/c-sharp/c-sharp-common/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
},
2929
"typings": "dist/typings/index.d.ts",
3030
"scripts": {
31-
"lint": "eslint **/*.ts",
32-
"test": "jest --no-watchman"
31+
"lint": "eslint **/*.ts"
3332
},
3433
"peerDependencies": {
3534
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",

packages/plugins/c-sharp/c-sharp-operations/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
},
3030
"typings": "dist/typings/index.d.ts",
3131
"scripts": {
32-
"lint": "eslint **/*.ts",
33-
"test": "jest --no-watchman"
32+
"lint": "eslint **/*.ts"
3433
},
3534
"peerDependencies": {
3635
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",

packages/plugins/dart/flutter-freezed/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
},
3939
"typings": "dist/typings/index.d.ts",
4040
"scripts": {
41-
"lint": "eslint **/*.ts",
42-
"test": "jest --no-watchman --config ../../../../jest.config.js"
41+
"lint": "eslint **/*.ts"
4342
},
4443
"peerDependencies": {
4544
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

packages/plugins/flow/flow/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
},
3434
"typings": "dist/typings/index.d.ts",
3535
"scripts": {
36-
"lint": "eslint **/*.ts",
37-
"test": "jest --no-watchman --config ../../../../jest.config.js"
36+
"lint": "eslint **/*.ts"
3837
},
3938
"peerDependencies": {
4039
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

packages/plugins/flow/operations/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
},
3434
"typings": "dist/typings/index.d.ts",
3535
"scripts": {
36-
"lint": "eslint **/*.ts",
37-
"test": "jest --no-watchman --config ../../../../jest.config.js"
36+
"lint": "eslint **/*.ts"
3837
},
3938
"peerDependencies": {
4039
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

packages/plugins/flow/resolvers/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
},
3434
"typings": "dist/typings/index.d.ts",
3535
"scripts": {
36-
"lint": "eslint **/*.ts",
37-
"test": "jest --no-watchman --config ../../../../jest.config.js"
36+
"lint": "eslint **/*.ts"
3837
},
3938
"peerDependencies": {
4039
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('ResolversTypes', () => {
125125
});
126126

127127
it('should warn about unused mappers by default', async () => {
128-
const spy = jest.spyOn(console, 'warn').mockImplementation();
128+
const spy = vi.spyOn(console, 'warn').mockImplementation(() => {});
129129
const testSchema = buildSchema(/* GraphQL */ `
130130
type Query {
131131
comments: [Comment!]!
@@ -162,7 +162,7 @@ describe('ResolversTypes', () => {
162162
});
163163

164164
it('should be able not to warn about unused mappers', async () => {
165-
const spy = jest.spyOn(console, 'warn').mockImplementation();
165+
const spy = vi.spyOn(console, 'warn').mockImplementation(() => {});
166166
const testSchema = buildSchema(/* GraphQL */ `
167167
type Query {
168168
comments: [Comment!]!
@@ -364,7 +364,7 @@ describe('ResolversTypes', () => {
364364
});
365365

366366
it('Should generate the correct resolvers when used with mappers with interfaces', async () => {
367-
const spy = jest.spyOn(console, 'warn').mockImplementation();
367+
const spy = vi.spyOn(console, 'warn').mockImplementation(() => {});
368368
const result = (await plugin(
369369
resolversTestingSchema,
370370
[],

packages/plugins/java/apollo-android/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
},
3434
"typings": "dist/typings/index.d.ts",
3535
"scripts": {
36-
"lint": "eslint **/*.ts",
37-
"test": "jest --no-watchman --config ../../../../jest.config.js"
36+
"lint": "eslint **/*.ts"
3837
},
3938
"peerDependencies": {
4039
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

packages/plugins/java/java/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
},
3434
"typings": "dist/typings/index.d.ts",
3535
"scripts": {
36-
"lint": "eslint **/*.ts",
37-
"test": "jest --no-watchman --config ../../../../jest.config.js"
36+
"lint": "eslint **/*.ts"
3837
},
3938
"peerDependencies": {
4039
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

packages/plugins/java/kotlin/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
},
3434
"typings": "dist/typings/index.d.ts",
3535
"scripts": {
36-
"lint": "eslint **/*.ts",
37-
"test": "jest --no-watchman --config ../../../../jest.config.js"
36+
"lint": "eslint **/*.ts"
3837
},
3938
"peerDependencies": {
4039
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

0 commit comments

Comments
 (0)