Open eryue0220 opened 1 month ago
Currently, A workaround is provide a transform in jest to remove module.exports
in source code: https://github.com/eryue0220/usearch-jest-esm-bug/blob/main/jest.config.mjs#L5
I am very inexperienced in JS tooling. Any chance you could open a PR if you know how to fix that, @eryue0220?
I am very inexperienced in JS tooling. Any chance you could open a PR if you know how to fix that, @eryue0220?
Sure, I will fix this later.
Describe the bug
When run test through Jest in ESM, it will occur an error like:![image](https://github.com/unum-cloud/usearch/assets/3050418/02e9bf2a-5426-45e0-a196-09c564e76df0)
Steps to reproduce
Expected behavior
It should pass without babel transform the code.
USearch version
2.11.1
Operating System
Mac OSX
Hardware architecture
Arm
Which interface are you using?
Other bindings
Contact Details
No response
Are you open to being tagged as a contributor?
.git
history as a contributorIs there an existing issue for this?
Code of Conduct