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
+20
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,23 @@ Unit test runner for NativeScript
4
4
Refer to the documentation of NativeScript CLI's `ns test init` command for usage.
5
5
6
6
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