I have been trying to create some test for my app using jest, but it fuels imports are failing in test, I am not sure how to fix it, possibly it requires some flag in jestconfig.json or some changes in sdk itself, please help me.
Hey @sway! I’m afraid I haven’t been able to recreate your issue. I’ve been able to install fuels in a new project with no additional jest config and run your test: repository.
However I also can’t access your repo, spark-ts-sdk must be private? I’d be happy to take a look if you are able to replicate it in a new repo or give access to that one?
Test suite failed to run
src/order.ts:2:49 - error TS2307: Cannot find module './predicates' or its corresponding type declarations.
2 import { LimitOrderPredicateAbi__factory } from "./predicates";
~~~~~~~~~~~~~~
src/order.ts:3:53 - error TS2307: Cannot find module './predicates/factories/LimitOrderPredicateAbi__factory' or its corresponding type declarations.
3 import { LimitOrderPredicateAbiConfigurables } from "./predicates/factories/LimitOrderPredicateAbi__factory";
I think there must be some autogenerated predicate factories that haven’t been committed to the branch?