solana-developers / program-examples

A repository of Solana program examples
808 stars 304 forks source link

'anchor test' failing for at least one project #117

Open mikemaccana opened 3 months ago

mikemaccana commented 3 months ago

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!

heyAyushh commented 3 months ago

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)