Unverified Commit f052fa8d authored by Balázs Orbán's avatar Balázs Orbán Committed by GitHub

chore(examples): fix `with-cypress` build (#62614)

### What?

Fix the `with-cypress` example build errors.

### Why?

`next build` is broken.

### How?

exclude tests from compilation, fix import

Fixes #50124

Closes NEXT-2629
parent 29876c6f
import AboutComponent from "./components/about-component"; import AboutComponent from "./about-component";
/* eslint-disable */ /* eslint-disable */
// Disable ESLint to prevent failing linting inside the Next.js repo. // Disable ESLint to prevent failing linting inside the Next.js repo.
// If you're using ESLint on your project, we recommend installing the ESLint Cypress plugin instead: // If you're using ESLint on your project, we recommend installing the ESLint Cypress plugin instead:
......
...@@ -22,5 +22,5 @@ ...@@ -22,5 +22,5 @@
"strictNullChecks": true "strictNullChecks": true
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"] "exclude": ["node_modules", "**/*.cy.*"]
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment