-
Notifications
You must be signed in to change notification settings - Fork 15
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
18 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,11 +1,28 @@ | ||
### Build | ||
|
||
The build command output for `browser`, `node`, `deno`, and `workerd` targets to `ucan-wasm/lib`. | ||
|
||
``` | ||
wasm-pack build --target web | ||
npm run build | ||
``` | ||
|
||
### Test | ||
|
||
The test command tests `node` and browser environments including `chromium`, `firefox`, and `webkit` | ||
using headless browsers. | ||
|
||
``` | ||
npm run test | ||
``` | ||
|
||
Testing can also be run for `node` only. | ||
|
||
``` | ||
npm run test:node | ||
``` | ||
|
||
The test commands runs `build` to ensure all targets are available for testing. | ||
|
||
### Reporting | ||
|
||
Test runs output test results and coverage as JSON artifacts to `ucan-wasm/tests/report`. |