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
Describe the bug
When importing from @casl/ability/extra, Jest will complain about the module not being found.
To Reproduce
Steps to reproduce the behavior:
Import from @casl/ability/extra
Run a Jest test
Expected behavior
The imports should be correctly resolved while running under Jest. This can be fixed if any instances of "extra.js" in the package.json are replaced with "extra/index.js".
CASL Version
@casl/ability - v6.7.0 @casl/prisma - v1.4.1
Environment:
Node 18
The text was updated successfully, but these errors were encountered:
Describe the bug
When importing from @casl/ability/extra, Jest will complain about the module not being found.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The imports should be correctly resolved while running under Jest. This can be fixed if any instances of "extra.js" in the package.json are replaced with "extra/index.js".
CASL Version
@casl/ability
- v6.7.0@casl/prisma
- v1.4.1Environment:
Node 18
The text was updated successfully, but these errors were encountered: