Skip to content

Commit d30ad76

Browse files
authored
chore(deps): update Jest dependencies to v29 (#188)
1 parent 1b4bf75 commit d30ad76

File tree

4 files changed

+369
-367
lines changed

4 files changed

+369
-367
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@
7373
"@babel/preset-typescript": "^7.18.6",
7474
"@commitlint/cli": "^17.1.2",
7575
"@commitlint/config-conventional": "^17.1.0",
76-
"@jest/globals": "^28.1.3",
76+
"@jest/globals": "^29.2.2",
7777
"@rollup/plugin-babel": "^5.3.1",
7878
"@rollup/plugin-commonjs": "^22.0.2",
7979
"@rollup/plugin-inject": "^4.0.4",
8080
"@rollup/plugin-node-resolve": "^14.1.0",
8181
"@scaleway/eslint-config-react": "^3.7.10",
82-
"@types/jest": "^28.1.7",
82+
"@types/jest": "^29.2.0",
8383
"babel-plugin-annotate-pure-calls": "^0.4.0",
8484
"cross-env": "^7.0.3",
8585
"cross-fetch": "^3.1.5",
@@ -88,7 +88,7 @@
8888
"eslint-formatter-gitlab": "^3.0.0",
8989
"eslint-plugin-tsdoc": "^0.2.17",
9090
"husky": "^8.0.1",
91-
"jest": "^28.1.3",
91+
"jest": "^29.2.2",
9292
"jest-junit": "^14.0.1",
9393
"lerna": "^5.6.2",
9494
"lint-staged": "^13.0.3",

packages/clients/src/helpers/marshalling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const unmarshalMapOfObject = <T, B extends boolean>(
145145
: Record<string, T>
146146
}
147147

148-
return Object.entries(data).reduce(
148+
return Object.entries(data || {}).reduce(
149149
(acc, [key, value]) => ({
150150
...acc,
151151
[key]: unmarshaller(value),

packages/clients/src/scw/fetch/__tests__/build-fetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe(`buildFetcher (mock)`, () => {
7878
})
7979

8080
jest.spyOn(global, 'fetch')
81-
const mockedFetch = jest.mocked(fetch, false)
81+
const mockedFetch = jest.mocked(fetch)
8282
const fetcher = buildFetcher(DEFAULT_SETTINGS, global.fetch)
8383

8484
it(`gets a response without error for a simple request with unmarshaller`, async () => {

0 commit comments

Comments
 (0)