diff --git a/package.json b/package.json index de37c8b9951d..22c94bae63e6 100644 --- a/package.json +++ b/package.json @@ -62,14 +62,14 @@ "@testing-library/user-event": "14.3.0", "@types/babel__generator": "7", "@types/fs-extra": "9.0.13", - "@types/jest": "27.5.2", + "@types/jest": "28.1.6", "@types/jscodeshift": "0.11.5", "@types/lodash.template": "4.5.1", "@types/ncp": "2.0.5", "@types/prompts": "2.4.0", "all-contributors-cli": "6.20.0", "ansi-colors": "4.1.3", - "babel-jest": "27.5.1", + "babel-jest": "28.1.3", "babel-plugin-auto-import": "1.1.0", "babel-plugin-remove-code": "0.0.6", "boxen": "5.1.2", @@ -80,7 +80,7 @@ "fast-glob": "3.2.11", "fs-extra": "10.1.0", "is-port-reachable": "3.1.0", - "jest": "27.5.1", + "jest": "28.1.3", "jscodeshift": "0.13.1", "lerna": "5.3.0", "lodash.template": "4.5.0", diff --git a/packages/api-server/package.json b/packages/api-server/package.json index 3ea5628757ff..75e48385570a 100644 --- a/packages/api-server/package.json +++ b/packages/api-server/package.json @@ -56,7 +56,7 @@ "@types/split2": "3.2.1", "@types/yargs": "17.0.11", "aws-lambda": "1.0.7", - "jest": "27.5.1", + "jest": "28.1.3", "typescript": "4.7.4" }, "gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1" diff --git a/packages/api/package.json b/packages/api/package.json index 8bb5ca110707..a1063f389aab 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -59,7 +59,7 @@ "@types/split2": "3.2.1", "@types/uuid": "8.3.4", "aws-lambda": "1.0.7", - "jest": "27.5.1", + "jest": "28.1.3", "split2": "4.1.0", "typescript": "4.7.4" }, diff --git a/packages/auth/package.json b/packages/auth/package.json index 86709daa43e3..e04dba2de0fd 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -46,7 +46,7 @@ "firebase": "9.9.2", "firebase-admin": "10.3.0", "gotrue-js": "0.9.29", - "jest": "27.5.1", + "jest": "28.1.3", "magic-sdk": "8.1.1", "netlify-identity-widget": "1.9.2", "react": "17.0.2", diff --git a/packages/cli/package.json b/packages/cli/package.json index dd0f15849d42..2fdc7cb42356 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -69,7 +69,7 @@ "@babel/cli": "7.16.7", "@babel/core": "7.16.7", "@types/listr": "0.14.4", - "jest": "27.5.1", + "jest": "28.1.3", "typescript": "4.7.4" }, "gitHead": "3905ed045508b861b495f8d5630d76c7a157d8f1" diff --git a/packages/cli/src/commands/generate/component/__tests__/__snapshots__/component.test.ts.snap b/packages/cli/src/commands/generate/component/__tests__/__snapshots__/component.test.ts.snap index 8986b6d9f85d..e9a3ce3ff9de 100644 --- a/packages/cli/src/commands/generate/component/__tests__/__snapshots__/component.test.ts.snap +++ b/packages/cli/src/commands/generate/component/__tests__/__snapshots__/component.test.ts.snap @@ -37,6 +37,7 @@ exports[`creates a multi word component 1`] = ` return (
{'Find me in ./web/src/components/UserProfile/UserProfile.js'}
{'Find me in ./web/src/components/User/User.js'}
- Find me in ./web/src/pages/HomePage/HomePage.js
+ Find me in
+ ./web/src/pages/HomePage/HomePage.js
- My default route is named home
, link to me with \`
- Home\`
+ My default route is named
+ home
, link to me with \`Home
+ \`
- Find me in ./web/src/pages/ContactUsPage/ContactUsPage.js
+ Find me in
+ ./web/src/pages/ContactUsPage/ContactUsPage.js
- My default route is named contactUs
, link to me with \`
+ My default route is named
+ contactUs
, link to me with \`
ContactUs\`
- Find me in ./web/src/pages/CatsPage/CatsPage.js
+ Find me in
+ ./web/src/pages/CatsPage/CatsPage.js
- My default route is named cats
, link to me with \`
- Cats\`
+ My default route is named
+ cats
, link to me with \`Cats
+ \`
- Find me in ./web/src/pages/PostPage/PostPage.js
+ Find me in
+ ./web/src/pages/PostPage/PostPage.js
- My default route is named post
, link to me with \`
+ My default route is named
+ post
, link to me with \`
Post 42\`
The parameter passed to me is {id}
> ) @@ -223,12 +240,16 @@ const HomePage = () => {
- Find me in ./web/src/pages/HomePage/HomePage.js
+ Find me in
+ ./web/src/pages/HomePage/HomePage.js
- My default route is named home
, link to me with \`
- Home\`
+ My default route is named
+ home
, link to me with \`Home
+ \`
- Find me in ./web/src/pages/PostPage/PostPage.js
+ Find me in
+ ./web/src/pages/PostPage/PostPage.js
- My default route is named post
, link to me with \`
+ My default route is named
+ post
, link to me with \`
Post 42\`
The parameter passed to me is {id}
> ) diff --git a/packages/cli/src/commands/generate/scaffold/__tests__/__snapshots__/scaffold.test.js.snap b/packages/cli/src/commands/generate/scaffold/__tests__/__snapshots__/scaffold.test.js.snap index 102fbeff2665..9dbdffb66627 100644 --- a/packages/cli/src/commands/generate/scaffold/__tests__/__snapshots__/scaffold.test.js.snap +++ b/packages/cli/src/commands/generate/scaffold/__tests__/__snapshots__/scaffold.test.js.snap @@ -292,16 +292,19 @@ const PostsLayout = ({ children }) => { return (Id | +{post.id} |
---|---|
Title | +{post.title} |
Slug | +{post.slug} |
Author | +{post.author} |
Body | +{post.body} |
Image | +{post.image} |
Posted at | +{timeTag(post.postedAt)} |
Is pinned | +{checkboxInputTag(post.isPinned)} |
Read time | +{post.readTime} |
Rating | +{post.rating} |
Upvotes | +{post.upvotes} |
Metadata | +{jsonDisplay(post.metadata)} |
Huge number | +{post.hugeNumber} |