@nativescript/unit-test-runner
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

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 for changeset in CLI which adds that to all newly initialized unit test setups.

/@nativescript/unit-test-runner/

    Package Sidebar

    Install

    npm i @nativescript/unit-test-runner

    Weekly Downloads

    1,119

    Version

    3.0.4

    License

    Apache-2.0

    Unpacked Size

    83.3 kB

    Total Files

    40

    Last publish

    Collaborators

    • nativescript-user
    • tns-bot
    • lini
    • tachev
    • rosen-vladimirov
    • stoskov
    • rosen_vladimirov
    • walkerrunpdx
    • bradmartin
    • davecoffin
    • rigor789
    • nativescript-bot
    • multishiv19
    • eddyverbruggen
    • edusperoni
    • facetious
    • tdermendjiev
    • sis0k0