Skip to content

Commit afad4b5

Browse files
committed
edit readme
1 parent 948dd5b commit afad4b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ go install github.com/agnivade/wasmbrowsertest@latest
2727
```
2828
Run tests like so:
2929
```sh
30-
GOOS=js GOARCH=wasm go test -exec $(go env GOPATH)/bin/wasmbrowsertest ./...
30+
GOOS=js GOARCH=wasm go test -exec $(go env GOPATH)/bin/wasmbrowsertest ./pkg/... ./cmd/wasm
3131
```
3232
Or, if you don't wanna specify the `-exec`:
3333
1. Rename the exacutable so that `go test` finds it automatically:
@@ -36,5 +36,5 @@ mv "$(go env GOPATH)/bin/wasmbrowsertest" "$(go env GOPATH)/bin/go_js_wasm_exec"
3636
```
3737
2. And then run tests like you normally would:
3838
```sh
39-
GOOS=js GOARCH=wasm go test ./...
39+
GOOS=js GOARCH=wasm go test ./pkg/... ./cmd/wasm
4040
```

0 commit comments

Comments
 (0)