Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm test fails #21

Open
SimonAlling opened this issue Mar 4, 2020 · 0 comments
Open

npm test fails #21

SimonAlling opened this issue Mar 4, 2020 · 0 comments

Comments

@SimonAlling
Copy link

I expected npm test to succeed in a fresh clone of the repo, but it throws lint errors about console.log and an unnecessary semicolon.

$ git clone https://github.com/vrudikov/typescript-rest-boilerplate && cd typescript-rest-boilerplate && npm install && npm run swagger && npm run test
Cloning into 'typescript-rest-boilerplate'...
[...]

> [email protected] lint /home/alling/typescript-rest-boilerplate
> tslint ./src/**/*.ts ./test/**/*.ts


ERROR: src/controller/hello-admin-controller.ts:34:9 - Calls to 'console.log' are not allowed.
ERROR: src/model/admin.ts:11:2 - Unnecessary semicolon

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] lint: `tslint ./src/**/*.ts ./test/**/*.ts`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alling/.npm/_logs/2020-03-04T09_44_56_409Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] pretest: `cross-env NODE_ENV=test npm run build && npm run lint`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] pretest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alling/.npm/_logs/2020-03-04T09_44_56_421Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant