Skip to content

How to run different Anchor test files from yarn script command? #1317

@AuroraLantean

Description

@AuroraLantean

I see in Anchor.toml we can specify which test file to run, or to run all of them at once.

[scripts]
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/test1.ts"

But how can I specify which test file to run from yarn script like
yarn test1
yarn test2
?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions