program-examples icon indicating copy to clipboard operation
program-examples copied to clipboard

'anchor test' failing for at least one project

Open mikemaccana opened this issue 1 year ago • 1 comments

in tokens/escrow/anchor, anchor test fails with:

TypeError: Unknown file extension ".ts" for /Users/mikemaccana/Code/solana/program-examples/tokens/escrow/anchor/tests/escrow.ts

This is produced by ts-node. This used to work - did something change inAnchor.toml? Also CI should be picking up that the test command failed!

mikemaccana avatar Aug 23 '24 17:08 mikemaccana

An logical bug in anchor action was found where it was not building and testing some of the projects inside the batch. This bug was fixed with #113

The specific error in tokens/escrow/anchor was caused by @solana-developers/helpers being esm module and not getting picked up by ts-mocha (ts-node). That will be fixed in another pr. (Will notify here once it's fixed)

heyAyushh avatar Aug 29 '24 00:08 heyAyushh