Skip to content

Commit 572bfa9

Browse files
committed
Bump next@13, react@18, cypress@12 and [email protected] (#1)
1 parent f02c503 commit 572bfa9

File tree

11 files changed

+2434
-4823
lines changed

11 files changed

+2434
-4823
lines changed

.nycrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"extension": [".js", ".jsx", ".ts", ".tsx"],
3-
"extends": "@istanbuljs/nyc-config-typescript",
43
"include": ["pages/**/*"],
54
"exclude": ["pages/api/__coverage__.js"],
65
"all": true,

cypress.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
env: {
5+
codeCoverage: {
6+
url: '/api/__coverage__',
7+
},
8+
},
9+
10+
e2e: {
11+
baseUrl: 'http://localhost:3000/',
12+
supportFile: 'cypress/support/e2e.ts',
13+
setupNodeEvents(on, config) {
14+
require('@cypress/code-coverage/task')(on, config);
15+
return config;
16+
},
17+
},
18+
});

cypress.json

Lines changed: 0 additions & 9 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

cypress/plugins/index.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

cypress/support/e2e.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ***********************************************************
2+
// This example support/e2e.ts is processed and
3+
// loaded automatically before your test files.
4+
//
5+
// This is a great place to put global configuration and
6+
// behavior that modifies Cypress.
7+
//
8+
// You can change the location of this file or turn off
9+
// automatically serving support files with the
10+
// 'supportFile' configuration option.
11+
//
12+
// You can read more here:
13+
// https://on.cypress.io/configuration
14+
// ***********************************************************
15+
16+
// Import commands.js using ES2015 syntax:
17+
import './commands';
18+
import '@cypress/code-coverage/support';
19+
20+
// Alternatively you can use CommonJS syntax:
21+
// require('./commands')

next-env.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@
1010
"start": "next start"
1111
},
1212
"dependencies": {
13-
"next": "9.5.4",
14-
"react": "16.13.1",
15-
"react-dom": "16.13.1"
13+
"next": "13.0.6",
14+
"react": "18.2.0",
15+
"react-dom": "18.2.0"
1616
},
1717
"nyc": {
1818
"extends": "./.nycrc.json",
1919
"report-dir": "cypress-coverage",
2020
"reporter": [
2121
"json",
22-
"lcov"
22+
"lcov",
23+
"text-summary"
2324
]
2425
},
2526
"devDependencies": {
26-
"@cypress/browserify-preprocessor": "^3.0.1",
27-
"@cypress/code-coverage": "^3.8.1",
28-
"@istanbuljs/nyc-config-typescript": "^1.0.1",
29-
"@testing-library/cypress": "^7.0.1",
30-
"@types/node": "^14.11.7",
31-
"@types/react": "^16.9.51",
32-
"@types/react-dom": "^16.9.8",
33-
"@types/testing-library__cypress": "^5.0.8",
34-
"babel-plugin-istanbul": "^6.0.0",
35-
"cypress": "^5.3.0",
36-
"nyc": "^15.1.0",
37-
"typescript": "^4.0.3"
27+
"@cypress/browserify-preprocessor": "3.0.2",
28+
"@cypress/code-coverage": "3.10.0",
29+
"@testing-library/cypress": "8.0.7",
30+
"@types/node": "18.11.13",
31+
"@types/react": "18.0.26",
32+
"@types/react-dom": "18.0.9",
33+
"@types/testing-library__cypress": "5.0.9",
34+
"babel-plugin-istanbul": "6.1.1",
35+
"cypress": "12.0.2",
36+
"nyc": "15.1.0",
37+
"typescript": "4.9.4"
3838
}
3939
}

pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export default function Home() {
1717
</h1>
1818

1919
<div className={styles.linkContainer}>
20-
<Link href="/about">
21-
<a data-testid="about_page_link">Try going to about page...</a>
20+
<Link data-testid="about_page_link" href="/about">
21+
Try going to about page...
2222
</Link>
2323
<>(you can't lol, idk)</>
2424
</div>

0 commit comments

Comments
 (0)