rsnext/test/lib
Tim Neutkens 5aa54b3385
Add pagesDir to Jest transformer (#36599)
Fixes #35469

Adds `pagesDir` which is required for the Relay transform.

Added a test case based on https://github.com/hanford/relay-swc-jest.



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have 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 helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2022-05-01 16:39:30 +00:00
..
browsers Do not add locale to link for api route and middleware preflight (#35994) 2022-04-11 15:59:07 +00:00
next-modes Add event for swc load failure and attempt patching lockfile (#36527) 2022-04-28 11:31:15 +02:00
amp-test-utils.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
create-next-install.js Add event for swc load failure and attempt patching lockfile (#36527) 2022-04-28 11:31:15 +02:00
e2e-utils.ts Add pagesDir to Jest transformer (#36599) 2022-05-01 16:39:30 +00:00
flat-map-polyfill.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
mocks-require-hook.js Validate streaming writer chunk type in testing (#36200) 2022-04-18 16:24:06 +02:00
next-test-utils.js Ensure there is only 1 render pass in concurrent rendering with getInitialProps in _document (#36352) 2022-04-21 16:01:47 +00:00
next-webdriver.ts fix: add locale prefix to middleware preflight url (#35911) 2022-04-07 11:39:49 +00:00
react-17-require-hook.js Update repo to use react 18 by default (#35888) 2022-04-05 21:51:47 +00:00
with-react-17.js Update repo to use react 18 by default (#35888) 2022-04-05 21:51:47 +00:00