Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@casl/ability/extra/package.json contains a typo preventing Jest from resolving the package correctly #891

Closed
neketka opened this issue Mar 25, 2024 · 1 comment · Fixed by #893
Labels

Comments

@neketka
Copy link

neketka commented Mar 25, 2024

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:

  1. Import from @casl/ability/extra
  2. 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

@neketka neketka added the bug label Mar 25, 2024
@stalniy
Copy link
Owner

stalniy commented Mar 25, 2024

Thank you for the issue! Will fix today/tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants