Add moduleDirectories for TS Jest Config (#32574)
It took me a while to work out that if using TypeScript with the `baseUrl` set to `.` (quite common) - then the tests fail as Jest can't find the modules. Explicitly setting the `moduleDirectories`, as per the change to the config, fixes this issue. ## Documentation / Examples - [x] Fixup commit - [x] Make sure the linting passes by running `yarn lint`
Showing
Please
register
or
sign in
to comment