Skip to content

Commit ff6f9b2

Browse files
author
Yevheniia_Rakhmatova
committed
DEVMS-1036: add error handler
1 parent 899d1f5 commit ff6f9b2

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

test-tool/src/checkers/global-checker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const check = async (filePaths, projectPath, isProduction = false, interceptors
136136
});
137137
});
138138

139-
if (isProduction) {
139+
if (!isProduction) {
140140
await checkTutorialGrouping({
141141
projectPath,
142142
interceptors,

test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ const { NODE_ENV } = process.env;
44
const isProduction = NODE_ENV == 'production';
55

66
testTool.run(__dirname, isProduction).then(result => {
7-
if(result.passed) {
7+
if (result.passed) {
88
process.exit(0);
99
} else {
1010
process.exit(1);
1111
}
12-
});
12+
}).catch((error) => {
13+
console.log(error);
14+
process.exit(1);
15+
});

0 commit comments

Comments
 (0)