Skip to content

Commit

Permalink
Update jest from 27 to latest 29 (#206)
Browse files Browse the repository at this point in the history
Updated jest, jest types and ts-jest to the latest versions.

The upgrade to v29 includes a breaking change on snapshots so they are
updated here as well (ref. https://jestjs.io/blog/2022/08/25/jest-29)
  • Loading branch information
oporkka committed Jun 14, 2023
1 parent 871ec37 commit 5c9d8bc
Show file tree
Hide file tree
Showing 4 changed files with 1,408 additions and 1,500 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@stryker-mutator/jest-runner": "^2.0.0",
"@stryker-mutator/typescript": "^2.0.0",
"@types/benchmark": "^1.0.31",
"@types/jest": "^27.0.3",
"@types/jest": "^29.5.2",
"@types/json-schema": "^7.0.1",
"@types/lodash.memoize": "^4.1.6",
"@types/lodash.merge": "^4.6.6",
Expand All @@ -73,10 +73,10 @@
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-standard": "^5.0.0",
"graphql": "^16.0.0",
"jest": "^27.4.3",
"jest": "^29.5.0",
"lint-staged": "^8.1.5",
"prettier": "^2.4.1",
"ts-jest": "^27.0.7",
"ts-jest": "^29.1.0",
"ts-node": "^8.0.3",
"typescript": "^4.4.4"
},
Expand Down
158 changes: 79 additions & 79 deletions src/__tests__/__snapshots__/json.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`JSON schema creation with abstract types json schema creation 1`] = `
Object {
"properties": Object {
"data": Object {
"properties": Object {
"u": Object {
"properties": Object {},
"type": Array [
{
"properties": {
"data": {
"properties": {
"u": {
"properties": {},
"type": [
"object",
"null",
],
},
},
"type": Array [
"type": [
"object",
"null",
],
},
"errors": Object {
"items": Object {
"errors": {
"items": {
"additionalProperties": true,
"properties": Object {
"locations": Object {
"items": Object {
"properties": Object {
"column": Object {
"properties": {
"locations": {
"items": {
"properties": {
"column": {
"type": "number",
},
"line": Object {
"line": {
"type": "number",
},
},
"type": "object",
},
"type": "array",
},
"message": Object {
"message": {
"type": "string",
},
"path": Object {
"items": Object {
"type": Array [
"path": {
"items": {
"type": [
"string",
"number",
],
Expand All @@ -59,161 +59,161 @@ Object {
`;

exports[`json schema creator json schema creation 1`] = `
Object {
"properties": Object {
"data": Object {
"properties": Object {
"article": Object {
"properties": Object {
"author": Object {
"properties": Object {
"id": Object {
{
"properties": {
"data": {
"properties": {
"article": {
"properties": {
"author": {
"properties": {
"id": {
"type": "string",
},
"name": Object {
"type": Array [
"name": {
"type": [
"string",
"null",
],
},
"pic": Object {
"properties": Object {
"height": Object {
"type": Array [
"pic": {
"properties": {
"height": {
"type": [
"integer",
"null",
],
},
"url": Object {
"type": Array [
"url": {
"type": [
"string",
"null",
],
},
"width": Object {
"type": Array [
"width": {
"type": [
"integer",
"null",
],
},
},
"type": Array [
"type": [
"object",
"null",
],
},
"recentArticle": Object {
"properties": Object {
"body": Object {
"type": Array [
"recentArticle": {
"properties": {
"body": {
"type": [
"string",
"null",
],
},
"id": Object {
"id": {
"type": "string",
},
"isPublished": Object {
"type": Array [
"isPublished": {
"type": [
"boolean",
"null",
],
},
"title": Object {
"type": Array [
"title": {
"type": [
"string",
"null",
],
},
},
"type": Array [
"type": [
"object",
"null",
],
},
},
"type": "object",
},
"body": Object {
"type": Array [
"body": {
"type": [
"string",
"null",
],
},
"id": Object {
"id": {
"type": "string",
},
"isPublished": Object {
"type": Array [
"isPublished": {
"type": [
"boolean",
"null",
],
},
"title": Object {
"type": Array [
"title": {
"type": [
"string",
"null",
],
},
},
"type": Array [
"type": [
"object",
"null",
],
},
"feed": Object {
"items": Object {
"properties": Object {
"id": Object {
"feed": {
"items": {
"properties": {
"id": {
"type": "string",
},
"title": Object {
"type": Array [
"title": {
"type": [
"string",
"null",
],
},
},
"type": Array [
"type": [
"object",
"null",
],
},
"type": Array [
"type": [
"array",
"null",
],
},
},
"type": Array [
"type": [
"object",
"null",
],
},
"errors": Object {
"items": Object {
"errors": {
"items": {
"additionalProperties": true,
"properties": Object {
"locations": Object {
"items": Object {
"properties": Object {
"column": Object {
"properties": {
"locations": {
"items": {
"properties": {
"column": {
"type": "number",
},
"line": Object {
"line": {
"type": "number",
},
},
"type": "object",
},
"type": "array",
},
"message": Object {
"message": {
"type": "string",
},
"path": Object {
"items": Object {
"type": Array [
"path": {
"items": {
"type": [
"string",
"number",
],
Expand Down
Loading

0 comments on commit 5c9d8bc

Please sign in to comment.