rsnext/test
Jiachi Liu 7fe01bb639
Disable client-only for middleware and pages api layer (#55541)
We need to disable the default treat `middleware` and `pages/api` as
server-only, unless users explictly import "server-only" to poison it.

This will avoid the case that when a library is mixing "client-only" API
and shared components API in one bundle, and the shared API is used in
middleware or `pages/api` that might cause error. See the test case
added.

Follow up for #55394
2023-09-18 14:59:54 -05:00
..
.stats-app chore(ci): bump pnpm v8.6.11 to v8.7.1 (#54873) 2023-09-06 00:39:44 +00:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development test(integration): fix --turbo tests fixture setup (#55293) 2023-09-18 17:46:07 +00:00
e2e Disable client-only for middleware and pages api layer (#55541) 2023-09-18 14:59:54 -05:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Disable flakey middleware-dev-error test (#55539) 2023-09-18 12:48:00 -05:00
lib fix(next-core): enable image extensions (#55460) 2023-09-18 17:30:27 +00:00
production test(integration): fix --turbo tests fixture setup (#55293) 2023-09-18 17:46:07 +00:00
unit Warn experimental.appDir option can be removed (#55346) 2023-09-13 23:38:17 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts fix(next-swc): skips client/server only checks when running with Jest to unblock testing (#54891) 2023-09-04 13:53:41 +02:00
jest.d.ts refactor smooth scroll bailout logic in app navigations (#53186) 2023-07-27 14:39:51 +00:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt
turbopack-tests-manifest.js test(turbopack): enable async storage tests (#55413) 2023-09-18 18:10:10 +00:00

See Testing for more information on how you can run/write/debug tests for Next.js.