Skip to content

Commit

Permalink
meta: upgrade to Jest 29 (#4049)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 30, 2022
1 parent 5fd4b0e commit a0eeb22
Show file tree
Hide file tree
Showing 19 changed files with 464 additions and 701 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -55,7 +55,7 @@
"adm-zip": "^0.5.5",
"autoprefixer": "^10.2.6",
"aws-sdk": "^2.1038.0",
"babel-jest": "^28.0.0",
"babel-jest": "^29.0.0",
"babel-plugin-inline-package-json": "^2.0.0",
"chalk": "^5.0.0",
"concat-stream": "^2.0.0",
Expand All @@ -81,8 +81,8 @@
"eslint-plugin-unicorn": "^43.0.0",
"github-contributors-list": "^1.2.4",
"glob": "^8.0.0",
"jest": "^28.0.0",
"jest-environment-jsdom": "^28.1.3",
"jest": "^29.0.0",
"jest-environment-jsdom": "^29.0.0",
"lint-staged": "^13.0.0",
"mime-types": "^2.1.26",
"nodemon": "^2.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/audio/package.json
Expand Up @@ -30,7 +30,7 @@
"preact": "^10.5.13"
},
"devDependencies": {
"@jest/globals": "^28.1.0"
"@jest/globals": "^29.0.0"
},
"peerDependencies": {
"@uppy/core": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/aws-s3-multipart/package.json
Expand Up @@ -28,7 +28,7 @@
"@uppy/utils": "workspace:^"
},
"devDependencies": {
"@jest/globals": "^28.0.0",
"@jest/globals": "^29.0.0",
"nock": "^13.1.0",
"whatwg-fetch": "3.6.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/aws-s3/package.json
Expand Up @@ -29,7 +29,7 @@
"nanoid": "^4.0.0"
},
"devDependencies": {
"@jest/globals": "^28.0.0",
"@jest/globals": "^29.0.0",
"whatwg-fetch": "3.6.2"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/companion-client/package.json
Expand Up @@ -26,6 +26,6 @@
"namespace-emitter": "^2.0.1"
},
"devDependencies": {
"@jest/globals": "^27.4.2"
"@jest/globals": "^29.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/@uppy/companion/package.json
Expand Up @@ -82,7 +82,7 @@
"@types/webpack": "^5.28.0",
"@types/ws": "8.5.3",
"into-stream": "^6.0.0",
"jest": "^28.0.0",
"jest": "^29.0.0",
"nock": "^13.1.3",
"supertest": "6.2.4",
"typescript": "~4.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/core/package.json
Expand Up @@ -31,6 +31,6 @@
"preact": "^10.5.13"
},
"devDependencies": {
"@jest/globals": "^27.4.2"
"@jest/globals": "^29.0.0"
}
}
18 changes: 9 additions & 9 deletions packages/@uppy/core/src/__snapshots__/Uppy.test.js.snap
Expand Up @@ -12,21 +12,21 @@ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#
`;

exports[`src/Core uploading a file should only upload files that are not already assigned to another upload id 1`] = `
Object {
"failed": Array [],
"successful": Array [
Object {
{
"failed": [],
"successful": [
{
"data": Uint8Array [],
"extension": "jpg",
"id": "uppy-foo/jpg-1e-image/jpeg",
"isRemote": false,
"meta": Object {
"meta": {
"name": "foo.jpg",
"type": "image/jpeg",
},
"name": "foo.jpg",
"preview": undefined,
"progress": Object {
"progress": {
"bytesTotal": null,
"bytesUploaded": 0,
"percentage": 0,
Expand All @@ -38,18 +38,18 @@ Object {
"source": "jest",
"type": "image/jpeg",
},
Object {
{
"data": Uint8Array [],
"extension": "jpg",
"id": "uppy-bar/jpg-1e-image/jpeg",
"isRemote": false,
"meta": Object {
"meta": {
"name": "bar.jpg",
"type": "image/jpeg",
},
"name": "bar.jpg",
"preview": undefined,
"progress": Object {
"progress": {
"bytesTotal": null,
"bytesUploaded": 0,
"percentage": 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/dashboard/package.json
Expand Up @@ -37,7 +37,7 @@
"preact": "^10.5.13"
},
"devDependencies": {
"@jest/globals": "^28.0.0",
"@jest/globals": "^29.0.0",
"@uppy/google-drive": "workspace:^",
"@uppy/status-bar": "workspace:^",
"resize-observer-polyfill": "^1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/remote-sources/package.json
Expand Up @@ -45,7 +45,7 @@
"access": "public"
},
"devDependencies": {
"@jest/globals": "^28.1.0",
"@jest/globals": "^29.0.0",
"resize-observer-polyfill": "^1.5.1"
}
}
2 changes: 1 addition & 1 deletion packages/@uppy/store-default/package.json
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/transloadit/uppy/issues"
},
"devDependencies": {
"@jest/globals": "^27.4.2"
"@jest/globals": "^29.0.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/store-redux/package.json
Expand Up @@ -24,7 +24,7 @@
"nanoid": "^4.0.0"
},
"devDependencies": {
"@jest/globals": "^28.0.0",
"@jest/globals": "^29.0.0",
"redux": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/@uppy/thumbnail-generator/package.json
Expand Up @@ -27,7 +27,7 @@
"exifr": "^7.0.0"
},
"devDependencies": {
"@jest/globals": "^28.0.0",
"@jest/globals": "^29.0.0",
"namespace-emitter": "2.0.1"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/transloadit/package.json
Expand Up @@ -39,7 +39,7 @@
"@uppy/core": "workspace:^"
},
"devDependencies": {
"@jest/globals": "^28.0.0",
"@jest/globals": "^29.0.0",
"whatwg-fetch": "^3.6.2"
}
}
2 changes: 1 addition & 1 deletion packages/@uppy/tus/package.json
Expand Up @@ -28,7 +28,7 @@
"tus-js-client": "^3.0.0"
},
"devDependencies": {
"@jest/globals": "^28.0.0"
"@jest/globals": "^29.0.0"
},
"peerDependencies": {
"@uppy/core": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/utils/package.json
Expand Up @@ -67,6 +67,6 @@
"lodash.throttle": "^4.1.1"
},
"devDependencies": {
"@jest/globals": "^27.4.2"
"@jest/globals": "^29.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/@uppy/webcam/package.json
Expand Up @@ -32,7 +32,7 @@
"preact": "^10.5.13"
},
"devDependencies": {
"@jest/globals": "^27.4.2"
"@jest/globals": "^29.0.0"
},
"peerDependencies": {
"@uppy/core": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/xhr-upload/package.json
Expand Up @@ -30,7 +30,7 @@
"nanoid": "^4.0.0"
},
"devDependencies": {
"@jest/globals": "^28.0.0",
"@jest/globals": "^29.0.0",
"nock": "^13.1.0"
},
"peerDependencies": {
Expand Down

0 comments on commit a0eeb22

Please sign in to comment.