Skip to content

Commit

Permalink
docs(sdk-snippet): updating some outdated info
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Nov 21, 2024
1 parent c1cbbc2 commit df59b43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sdk-snippets/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ Clients are what _actually_ generate snippets. For Node, if you want to generate
Once that's all done and your client is constructed you're ready to run unit tests.

```bash
npx jest src/targets/targets.test.ts
npx vitest src/targets/targets.test.ts
```

- Running this on a brand new client will throw exceptions for missing fixture snapshots, add those to `src/targets/{TARGET}/{CLIENT}/{server|webhooks}/fixtures` as they come up.
- If you happen to make changes to your client and it breaks your fixture snapshots you can re-run Jest with `OVERWRITE_EVERYTHING=true` update your fixtures.
- If you happen to make changes to your client and it breaks your fixture snapshots you can re-run Vitest with `OVERWRITE_EVERYTHING=true` update your fixtures.

```bash
OVERWRITE_EVERYTHING=true npx jest src/targets/targets.test.ts
OVERWRITE_EVERYTHING=true npx vitest src/targets/targets.test.ts
```

### `client.ts`
Expand Down

0 comments on commit df59b43

Please sign in to comment.