locked
Running tests scripts from package.json RRS feed

  • Question

  • I have seen people put the following in their package.json file. How does this work with visual studio.

    "scripts": {
        "test": "npm run test-node && npm run test-browser",
        "test-node": "mocha -R spec ./test/node/index.js",
        "test-browser": "mocha-phantomjs ./test/browser/index.html"}

    Friday, October 16, 2015 7:32 PM

All replies

  • Hi eljamaki,

    >>I have seen people put the following in their package.json file.

    Where did you get this script? Could you share us a document or link about the script you got?

    Whether it is related to the extension tool "NPM Scripts Task Runner" for ASP.NET 5 project?

    https://visualstudiogallery.msdn.microsoft.com/8f2f2cbc-4da5-43ba-9de2-c9d08ade4941

    http://blog.teamtreehouse.com/use-npm-task-runner

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.

    Microsoft does not control these sites and has not tested any software or information found on these sites;

    Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.

    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, October 19, 2015 8:09 AM