Skip to content

Commit 96c21ef

Browse files
authored
chore: readme troubleshooting notes
1 parent df04170 commit 96c21ef

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,23 @@ Unit test runner for NativeScript
44
Refer to the documentation of NativeScript CLI's `ns test init` command for usage.
55

66
If you encounter an issue, please log it at https://github.com/NativeScript/nativescript-cli/
7+
8+
### Troubleshooting
9+
10+
If you see an error like this:
11+
12+
```
13+
Error: connect ECONNREFUSED ::1:9876
14+
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
15+
```
16+
17+
When using node 17 or higher, make sure your `karma.conf.js` contains a server hostname setting, for example:
18+
19+
```
20+
// web server hostname (ensure this is present)
21+
hostname: '127.0.0.1',
22+
23+
// web server port
24+
port: 9876,
25+
```
26+
See [here](https://github.com/NativeScript/nativescript-cli/commit/81cb9c37cdd4e24115be79b24b68dfbaf8cdcfd2) for changeset in CLI which adds that to all newly initialized unit test setups.

0 commit comments

Comments
 (0)