diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c81acfaaba0..0f620d2e561 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,7 +58,7 @@ npm i > This requires [docker](https://www.docker.com/) installed on your machine. ```bash -npm run build-wasm +npm run build:wasm ``` #### Copy the sources to `undici` diff --git a/docs/docs/best-practices/mocking-request.md b/docs/docs/best-practices/mocking-request.md index 8f8c73f68e6..86ebca94f7a 100644 --- a/docs/docs/best-practices/mocking-request.md +++ b/docs/docs/best-practices/mocking-request.md @@ -102,7 +102,7 @@ setGlobalDispatcher(mockAgent) // this call is made (not intercepted) await fetch(`http://localhost:3000/endpoint?query='hello'`, { method: 'POST', - headers: { 'content-type': 'application/json' } + headers: { 'content-type': 'application/json' }, body: JSON.stringify({ data: '' }) })