Skip to content

Commit

Permalink
docs: add README for snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Oct 4, 2024
1 parent 9fe51f2 commit e19b126
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions apps/docs-snippets2/README.md
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)

Check failure on line 9 in apps/docs-snippets2/README.md

View workflow job for this annotation

GitHub Actions / Lint

Anchor #running does not exist in README.md

## 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
```

0 comments on commit e19b126

Please sign in to comment.