-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# `docs-snippets` | ||
|
||
**docs-snippets** is a private package for generating snippets for the Fuel documentation site. | ||
|
||
|
||
# Table of contents | ||
|
||
- [building](#building) | ||
- [running](#running) | ||
|
||
## Building | ||
|
||
This builds the snippets into testable scripts from the `src` folder and generates the Typegen `types` in the `typegend` folder. All test scripts end with a `.test.ts` suffix. | ||
```sh | ||
pnpm build | ||
``` | ||
|
||
## Testing | ||
|
||
This will build the snippets and run the generated tests. To specific a particular environment for a test, the snippet should be named as `{name}.{environment}.test.ts`. e.g. `deploy-contract.node.test.ts` | ||
|
||
If no environment is specified, it will run in the browser and node environments by default. | ||
|
||
```sh | ||
pnpm test | ||
``` |