Welcome to the Linux Foundation Forum!

Lab 6.1

The below message is not changing.
When I execute "node test.js", output appears as "passed"

logs
C:\PG\LFW211\ch-6\labs-1>npm test

labs-1@1.0.0 test C:\PG\LFW211\ch-6\labs-1
echo "Error: no test specified" && exit 1

"Error: no test specified"
npm ERR! Test failed. See above for more details.

package.json
{
"name": "labs-1",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "node app.js",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "standard"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"pino": "^6.7.0"
},
"devDependencies": {
"nonsynchronous": "^1.2.0",
"standard": "^16.0.1"
}
}

Comments

  • Labs 6.1 should contain the following package.json

    {
      "name": "labs-1",
      "version": "1.0.0",
      "description": "",
      "main": "index.js",
      "scripts": {
        "test": "node test"
      },
      "keywords": [],
      "author": "",
      "license": "ISC"
    }
    

    Is that not the case?

Categories

Upcoming Training