Skip to content

Commit fa13f5a

Browse files
committed
tmp: logging
Signed-off-by: Brian Nguyen <[email protected]>
1 parent 37597ae commit fa13f5a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

commands/create-project-api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ async function addSampleDataPlugin(projectName) {
162162
Logger.info("Added the sample data plugin successfully.");
163163
return true;
164164
} catch (error) {
165+
console.log(error);
165166
Logger.error(error);
166167
Logger.warn("Can't add the sample data plugin by error. Please add it manual.");
167168
return false;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"type": "module",
1313
"scripts": {
14-
"test": "node --experimental-json-modules --no-warnings node_modules/mocha/bin/_mocha ./tests/*.* --full-trace",
14+
"test": "node --experimental-json-modules node_modules/mocha/bin/_mocha ./tests/*.* --full-trace",
1515
"lint": "eslint .",
1616
"lint:fix": "eslint . --fix"
1717
},

tests/create-api-project.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ describe("The create-project-api command", () => {
3030
expect(responseLines[1]).to.equal("reaction-cli: Project creation complete. Change to your directory and run `npm install`");
3131
}).timeout(5000);
3232

33-
it("should print the correct output when user run with --populate option", async () => {
33+
it.only("should print the correct output when user run with --populate option", async () => {
34+
console.log(123)
3435
const response = await execute("./index.js", ["create-project", "api", "myshop", "--populate"]);
3536
const responseLines = response.trim().split(EOL);
3637
expect(responseLines[1]).equal("reaction-cli: Added the sample data plugin successfully.");

0 commit comments

Comments
 (0)