question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test script isn't working

See original GitHub issue

When using create-choo-app and running npm test right after creating a project I first get some standard errors and complains that

‘test-deps’ is not recognized as an internal or external command, operable program or batch file.

It seems to me it might be worth updating the test script to something similar like choojs/choo uses. We could add dependency-check to our package and use that to test the input file. Turning the test script into:

"test": "standard && dependency-check package.json && dependency-check --unused --no-dev package.json",

I am running on Windows 10 if that makes any difference 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
YerkoPalmacommented, Feb 5, 2018

test script is working now

> tmp@1.0.0 test /home/ubuntu/workspace/tmp
> standard && npm run test-deps


> tmp@1.0.0 test-deps /home/ubuntu/workspace/tmp
> dependency-check . && dependency-check . --extra --no-dev -i tachyons

Success! All dependencies used in the code are listed in package.json
Success! All dependencies in package.json are used in the code

thanks

1reaction
yoshuawuytscommented, Sep 15, 2017

Yeah, we should be using that. Probably include a --ignore tachyons as it only ever exposes CSS. A PR for this would be really helpful, thanks! 😄

On Thu, Sep 14, 2017 at 2:51 PM Hendrik notifications@github.com wrote:

When using create-choo-app and running npm test right after creating a project I first get some standard errors and complains that

‘test-deps’ is not recognized as an internal or external command, operable program or batch file.

It seems to me it might be worth updating the test script to something similar like choojs/choo uses. We could add dependency-check to our package and use that to test the input file. Turning the test script into:

“test”: “standard && dependency-check package.json && dependency-check --unused --no-dev package.json”,

I am running on Windows 10 if that makes any difference 😃

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/choojs/create-choo-app/issues/22, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWlekL1ZL4sSAVn-JrEO5HTuvw9pca5ks5siSFYgaJpZM4PXiG8 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Script Errors (What They Are and How to Fix Them)
A script error is an error that occurs when the instructions from a script can't be executed correctly for some reason.
Read more >
Scripts not working on a server. Only works on test mode?
Scripts not working on a server. Only works on test mode? ; 1, function onKeyPress(actionName, userInputState, inputObject) ; 2, if userInputState = =...
Read more >
FCC testing script not working - HTML-CSS
The thing is it doesn't work. Sometimes the testing button will appear, but only once, then doesn't reappear.
Read more >
Scripts not working in team test mode
My friend and I are having fun in studio and I want to show him something but whenever we go into team test...
Read more >
Verify if your script is working
If the script isn't firing, check that it's turned on via your dashboard. This function will be enabled once you complete the onboarding...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found