Skip to content

Commit f2d6e46

Browse files
chore(minor-deps): remove dependency @types/jest (#533)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vincent Germain <[email protected]>
1 parent ce72c23 commit f2d6e46

File tree

7 files changed

+767
-185
lines changed

7 files changed

+767
-185
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"@rollup/plugin-commonjs": "^24.0.1",
7979
"@rollup/plugin-node-resolve": "^15.0.1",
8080
"@scaleway/eslint-config-react": "^3.15.7",
81-
"@types/jest": "^29.4.1",
8281
"babel-plugin-annotate-pure-calls": "^0.4.0",
8382
"cross-env": "^7.0.3",
8483
"cross-fetch": "^3.1.5",

packages/clients/src/helpers/__tests__/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect } from '@jest/globals'
1+
import { describe, expect, test } from '@jest/globals'
22
import { isJSON, isJSONObject } from '../json'
33

44
describe('isJSON', () => {

packages/clients/src/internal/async/__tests__/sleep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it } from '@jest/globals'
1+
import { afterAll, beforeAll, describe, expect, it, jest } from '@jest/globals'
22
import { sleep } from '../sleep'
33

44
beforeAll(() => {

packages/clients/src/internal/logger/__tests__/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it } from '@jest/globals'
1+
import { describe, expect, it, jest } from '@jest/globals'
22
import { enableConsoleLogger, getLogger, setLogger } from '..'
33
import { ConsoleLogger } from '../console-logger'
44
import type { LogLevel } from '../level-resolver'
@@ -130,7 +130,7 @@ describe('ConsoleLogger', () => {
130130
})
131131

132132
it('returns the proper level boolean', () => {
133-
const log = jest.fn().mockImplementation()
133+
const log = jest.fn().mockImplementation(() => {})
134134
const out = makeCallbackConsole(log)
135135
for (const test of IS_LEVEL_ENOUGH_CASES) {
136136
const logger = new ConsoleLogger(test.base, '', out)

packages/clients/src/scw/__tests__/client-ini-profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it } from '@jest/globals'
1+
import { describe, expect, it, test } from '@jest/globals'
22
import {
33
assertValidAuthenticationSecrets,
44
hasAuthenticationSecrets,

packages/clients/src/scw/fetch/__tests__/resource-paginator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it } from '@jest/globals'
1+
import { describe, expect, it, jest } from '@jest/globals'
22
import {
33
enrichForPagination,
44
fetchAll,

0 commit comments

Comments
 (0)