From 5d5862693fb9518ada5abc00a5be30076319e77c Mon Sep 17 00:00:00 2001 From: Kazutaka NAKAMURA Date: Tue, 9 Feb 2021 12:08:26 +0900 Subject: [PATCH] Upgrade packages for example/with-typescript-eslint-jest (#21963) --- .../with-typescript-eslint-jest/package.json | 24 +++---- .../pages/index.tsx | 8 +-- .../pages/__snapshots__/index.test.tsx.snap | 70 ++++++++++++------- 3 files changed, 58 insertions(+), 44 deletions(-) diff --git a/examples/with-typescript-eslint-jest/package.json b/examples/with-typescript-eslint-jest/package.json index f583221200dd9..64f8a47e954f1 100644 --- a/examples/with-typescript-eslint-jest/package.json +++ b/examples/with-typescript-eslint-jest/package.json @@ -31,22 +31,22 @@ "react-dom": "^17.0.1" }, "devDependencies": { - "@testing-library/react": "^10.0.1", - "@types/jest": "^25.1.4", - "@types/node": "^13.9.5", - "@types/react": "^16.9.27", - "@typescript-eslint/eslint-plugin": "^2.25.0", - "@typescript-eslint/parser": "^2.25.0", - "babel-jest": "^25.2.3", - "eslint": "^6.8.0", - "eslint-config-prettier": "^6.10.1", + "@testing-library/react": "^11.2.5", + "@types/jest": "^26.0.20", + "@types/node": "^14.14.25", + "@types/react": "^17.0.1", + "@typescript-eslint/eslint-plugin": "^4.14.2", + "@typescript-eslint/parser": "^4.14.2", + "babel-jest": "^26.6.3", + "eslint": "^7.19.0", + "eslint-config-prettier": "^7.2.0", "eslint-plugin-react": "^7.19.0", "husky": "^4.2.3", "identity-obj-proxy": "^3.0.0", - "jest": "^25.2.3", - "jest-watch-typeahead": "^0.5.0", + "jest": "^26.6.3", + "jest-watch-typeahead": "^0.6.1", "lint-staged": "^10.0.10", "prettier": "^2.0.2", - "typescript": "^3.8.3" + "typescript": "^4.1.3" } } diff --git a/examples/with-typescript-eslint-jest/pages/index.tsx b/examples/with-typescript-eslint-jest/pages/index.tsx index 2003eb0f19478..571bec7d3c0bd 100644 --- a/examples/with-typescript-eslint-jest/pages/index.tsx +++ b/examples/with-typescript-eslint-jest/pages/index.tsx @@ -1,4 +1,5 @@ import Head from 'next/head' +import Image from 'next/image' export const Home = (): JSX.Element => (
@@ -59,7 +60,8 @@ export const Home = (): JSX.Element => ( target="_blank" rel="noopener noreferrer" > - Powered by Vercel Logo + Powered by{' '} + Vercel Logo @@ -182,10 +184,6 @@ export const Home = (): JSX.Element => ( line-height: 1.5; } - .logo { - height: 1em; - } - @media (max-width: 600px) { .grid { width: 100%; diff --git a/examples/with-typescript-eslint-jest/test/pages/__snapshots__/index.test.tsx.snap b/examples/with-typescript-eslint-jest/test/pages/__snapshots__/index.test.tsx.snap index 80105b4069a04..a279bd0110fc7 100644 --- a/examples/with-typescript-eslint-jest/test/pages/__snapshots__/index.test.tsx.snap +++ b/examples/with-typescript-eslint-jest/test/pages/__snapshots__/index.test.tsx.snap @@ -3,96 +3,96 @@ exports[`Home page matches snapshot 1`] = `