Skip to content

Commit 003d98f

Browse files
authored
Add WebMock hint
1 parent f0e84d2 commit 003d98f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -352,3 +352,15 @@ With this new default, all `yarn` operations should be done after `cd`ing to `ve
352352

353353
This repo provides an [adapted version](https://github.com/mtgrosser/nodo/blob/master/install/yarn.rake)
354354
of the `yarn:install` rake task which will automatically take care of the vendored module location.
355+
356+
357+
## Working with web mocking frameworks like WebMock
358+
359+
Nodo uses HTTP via UNIX sockets to connect to its Node process. This may lead to
360+
conflicts during tests when using `WebMock` or other tools which interfere with
361+
`Net::HTTP`. In order to work with WebMock, you need to enable its `allow_localhost`
362+
option:
363+
364+
```ruby
365+
WebMock.disable_net_connect!(allow_localhost: true)
366+
```

0 commit comments

Comments
 (0)