Skip to content

Can't enable tests on project created in Nx workspace #8

@mahmoudajawad

Description

@mahmoudajawad

Overview

Command ns tests init is used to initilise tests in Nativescript. The command doesn't have docs on how to be used with Nx workspace.

Details

I attempted to run it on Nx workspace root, where it correctly created karma.config.js, but nothing at all to the single nativescript app in the workspace. Running the command from the app folder fails with the log:

npm ERR! code 127
npm ERR! path /path/to/wprkspace/node_modules/typescript
npm ERR! command failed
npm ERR! command sh -c gulp build-eslint-rules
npm ERR! sh: gulp: command not found

npm ERR! A complete log of this run can be found in:
npm ERR!     /HOME/PATH/.npm/_logs/2021-04-03T07_48_00_995Z-debug.log
Command npm failed with exit code 127

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions