Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikemaccana opened this issue Mar 12, 2024 · 1 comment
Labels
cli enhancement New feature or request

Comments

@mikemaccana
Copy link
Contributor

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.

@acheroncrypto acheroncrypto added enhancement New feature or request cli labels Mar 12, 2024
@acheroncrypto
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants