Update package.json to use anchor test for yarn test (#78)

This commit is contained in:
meep 2023-01-11 09:35:27 +08:00 committed by GitHub
parent 9a7386be60
commit 277e4ff7c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -23,6 +23,14 @@ yarn add "decimal.js"
Read instructions on how to use the SDK on the [Orca Developer Portal](https://orca-so.gitbook.io/orca-developer-portal/orca/welcome). Read instructions on how to use the SDK on the [Orca Developer Portal](https://orca-so.gitbook.io/orca-developer-portal/orca/welcome).
## Tests
To run tests for the SDK, setup your anchor environment and run:
```
anchor test
```
# License # License
[Apache 2.0](https://choosealicense.com/licenses/apache-2.0/) [Apache 2.0](https://choosealicense.com/licenses/apache-2.0/)

View File

@ -35,7 +35,7 @@
"watch": "tsc -w -p src", "watch": "tsc -w -p src",
"prepublishOnly": "yarn build", "prepublishOnly": "yarn build",
"prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write", "prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"test": "jest", "test": "anchor test",
"docs": "npx typedoc --options typedoc.json" "docs": "npx typedoc --options typedoc.json"
}, },
"lint-staged": { "lint-staged": {