You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anchor supports mocha / ts-mocha by default, and jest / ts-jest as an option, but as you know ts-mocha doesn't seem well maintained any more and there's little need to add a third party test suite when there's one built into node.
In src/tests/whatever.ts
import { before, describe, test } from "node:test";
And in Anchor.toml (I use esrun but any modern TS runner is fine).
[scripts]
test = "npx esrun tests/reveal.test.ts"
Less dependencies means less things to break or track upstream bugs.
The text was updated successfully, but these errors were encountered:
Anchor supports mocha / ts-mocha by default, and jest / ts-jest as an option, but as you know ts-mocha doesn't seem well maintained any more and there's little need to add a third party test suite when there's one built into node.
In
src/tests/whatever.ts
And in
Anchor.toml
(I useesrun
but any modern TS runner is fine).Less dependencies means less things to break or track upstream bugs.
The text was updated successfully, but these errors were encountered: