anchor icon indicating copy to clipboard operation
anchor copied to clipboard

feature suggestion: remove third party test suites from defaults, just use node

Open mikemaccana opened this issue 11 months ago • 1 comments

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.

mikemaccana avatar Mar 12 '24 19:03 mikemaccana

It's always good to have less dependencies, so I support this feature.

acheroncrypto avatar Mar 12 '24 20:03 acheroncrypto