'syntax error while running collection in node js
while running below code
const newman = require("newman");
newman.run(
{
collection: require("./test.postman_collection.JSON"),
reporters: "cli",
},
function (err) {
if (err) {
throw err;
}
console.log("collection run complete");
}
);
though the collection is in proper json format still its throwing below error.
test.postman_collection.JSON:2 "info": { ^ SyntaxError: Unexpected token ':'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
