https://github.com/nativescript/nativescript-unit-test-runner
https://github.com/nativescript/nativescript-unit-test-runner
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/nativescript/nativescript-unit-test-runner
- Owner: NativeScript
- License: apache-2.0
- Created: 2015-10-13T12:06:07.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2023-03-14T18:10:03.000Z (over 2 years ago)
- Last Synced: 2024-10-29T15:51:53.659Z (about 1 year ago)
- Language: TypeScript
- Size: 1.08 MB
- Stars: 14
- Watchers: 39
- Forks: 13
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Unit test runner for NativeScript
=================================
Refer to the documentation of NativeScript CLI's `ns test init` command for usage.
If you encounter an issue, please log it at https://github.com/NativeScript/nativescript-cli/
### Troubleshooting
If you see an error like this:
```
Error: connect ECONNREFUSED ::1:9876
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1195:16)
```
When using node 17 or higher, make sure your `karma.conf.js` contains a server hostname setting, for example:
```
// web server hostname (ensure this is present)
hostname: '127.0.0.1',
// web server port
port: 9876,
```
See [here](https://github.com/NativeScript/nativescript-cli/commit/81cb9c37cdd4e24115be79b24b68dfbaf8cdcfd2) for changeset in CLI which adds that to all newly initialized unit test setups.