next.js
6e6a3308 - test: exclude the ts testing files from tsconfig during local dev in nextjs repo (#74647)

Commit
352 days ago
test: exclude the ts testing files from tsconfig during local dev in nextjs repo (#74647) ### What We're suffering from local dev that every time the `*.test.ts` files are resolved with the local tsconfig.json, which was intended to be handled by the root tsconfig.json in the Next.js monorepo as they require to resolve the utils alias. By leveraing the `NEXT_PRIVATE_SKIP_CANARY_CHECK` flag which is renamed to `NEXT_PRIVATE_LOCAL_DEV` for our development. This only happen in local development in our monorepo, not in development of users or any other situations. ### Benefits This helps us to always write the tests with correct type hints especially for the rare cheerio or playwright interface APIs with our testing suite
Author
Parents
Loading