rsnext/test
Shu Ding c742c038b0
Port page and layout level API assertions to SWC transform (#40653)
We used to do an extra pass of SWR `parse` and loop over the AST inside
JavaScript to check if `getServerSideProps` or `getStaticProps` is used
in a client page or layout. Instead this can be done in the same
`react_server_components` SWC transform now.

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-09-19 14:30:32 +02:00
..
.stats-app Add edge ssr to pr stats (#39621) 2022-08-15 13:28:31 -05:00
__mocks__ Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
development chore: Update swc (#40520) 2022-09-15 14:22:11 +02:00
e2e Port page and layout level API assertions to SWC transform (#40653) 2022-09-19 14:30:32 +02:00
integration Remove internal client next api detection (#40646) 2022-09-18 09:36:10 +00:00
lib Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -07:00
production Client directive (#40415) 2022-09-18 00:00:16 +00:00
unit fix: eslint no-script-component-in-head error url (#40422) 2022-09-12 16:15:33 +00:00
.gitignore
jest-setup-after-env.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
jest.d.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00

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