Skip to content

Commit 9796329

Browse files
committed
ci: make jest log silent
1 parent c7abf71 commit 9796329

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ require('dotenv').config({ path: join(__dirname, '.env.test') });
33

44
const config = {
55
verbose: true,
6+
silent: true,
67
testTimeout: 60000,
78
testEnvironment: 'node',
89
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)$',

src/modules/scf/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,12 @@ class Scf {
495495

496496
if (!func) {
497497
console.log(`Function ${functionName} not exist`);
498-
return;
498+
return true;
499499
}
500500

501501
if (func.Status === 'Updating' || func.Status === 'Creating') {
502502
console.log(`Function ${functionName} status is ${func.Status}, can not delete`);
503-
return;
503+
return false;
504504
}
505505

506506
await this.deleteFunction(namespace, functionName);

0 commit comments

Comments
 (0)