You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-3Lines changed: 22 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,18 +30,18 @@ Edit your /etc/hosts to add an entry for example.org:
30
30
127.0.0.1 corpusdev.example.org
31
31
```
32
32
33
-
Turn on your local couchdb and make sure it is running on http://127.0.0.1:5984/_utils Record tests by adding `.only` on the tests you wish to record:
33
+
Turn on your local couchdb and make sure it is running on http://127.0.0.1:5984/_utils Record tests by adding `.only` on the tests which show the error "refused: not recording and no network access":
34
34
35
35
```bash
36
-
$ DEBUG=*user*,*nock*,*replay* REPLAY=record npm test
36
+
$ SOURCE_URL:-https://public:none@corpusdev.other.org DEBUG=*user*,*nock*,*replay* REPLAY=record npm test
37
37
```
38
38
39
39
As a result you should see a directory corresponding to the server, and files with-in it representing the requests:
40
40
41
41
```bash
42
42
$ tree test/fixtures/
43
43
test/fixtures/
44
-
└── corpusdev.example.org-5984
44
+
└── corpusdev.other.org-5984
45
45
└── 154417467505825257
46
46
```
47
47
@@ -53,6 +53,25 @@ To run tests against the local instance:
0 commit comments