Skip to content

Commit bb93ab1

Browse files
committed
Testing documentation.
1 parent b053d92 commit bb93ab1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

TEST.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<p align="center">
2+
<img width="600" src="https://raw.githubusercontent.com/helikon-labs/chainviz/development/readme-files/chainviz-logo.png">
3+
</p>
4+
5+
![](https://github.com/helikon-labs/chainviz-v1/actions/workflows/prettier_eslint.yml/badge.svg)
6+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=helikon-labs_chainviz&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=helikon-labs_chainviz)
7+
8+
### Format
9+
10+
To format the code, just run the command `npm run format` at the root source folder, which would also fix the formatting errors. If instead you would like to only view the formatting problems then run `npm run format:check`. Formatting rules are defined inside [.prettierrc](./.prettierrc). Files that are excluded from formatting are defined inside [.prettierignore](./.prettierignore).
11+
12+
### Lint
13+
14+
To run a static check on the code, run `npm run lint` at the root source folder. Lint rules are defined inside [.eslintrc](./.eslintrc), and [.eslintignore](./.eslintignore) defines the files that are excluded from linting.
15+
16+
### Test
17+
18+
To run the tests use the command `npm run test` at the root source folder. Testing code is inside the [tests](./tests) folder. Below is a list of files inside that folder, and the functionality they test.
19+
20+
- [data-store.test.ts](./tests/data-store.test.ts): Tests data store functionality.
21+
- [event-bus.test.ts](./tests/event-bus.test.ts): Tests event bus functionality.
22+
- [format.test.ts](./tests/format.test.ts): Tests formatting utility functions.
23+
- [identicon.test.ts](./tests/identicon.test.ts): Tests Polkadot identicon generator code.
24+
- [object.test.ts](./tests/object.test.ts): Tests deep cloning code for single objects and arrays.
25+
- [rpc-subscription-service.test.ts](./tests/rpc-subscription-service.test.ts): Tests the generic RPC subscription service class functionality, which is used for connecting to SubVT WebSocket services.
26+
- [ui-util.test.ts](./tests/ui-util.test.ts): Test validator display text generator function.

0 commit comments

Comments
 (0)