You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a generated a react-native library, there are typescript errors when using functions from @testing-library/jest-native/extend-expect in .spec files.
The reason is likely that ./test-setup.ts is not included here:
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#23027#22198
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->
<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->
## Current Behavior
<!-- This is the behavior we have today -->
## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->
## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->
Fixes#23027#22198
(cherry picked from commit a53fee8)
Current Behavior
In a generated a react-native library, there are typescript errors when using functions from
@testing-library/jest-native/extend-expect
in.spec
files.The reason is likely that
./test-setup.ts
is not included here:nx/packages/react-native/src/generators/library/library.spec.ts
Line 236 in 84d96cc
The issue is the same for the expo-generator.
Expected Behavior
Since the generator includes test-setup.ts and includes it in jest.config, typescript should also be configured to use this.
GitHub Repo
No response
Steps to Reproduce
nx generate @nx/react-native:library --name=test --projectNameAndRootFormat=as-provided --no-interactive
Nx Report
Failure Logs
No response
Package Manager Version
yarn 4.1.0
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: