Skip to content

Commit 32785bb

Browse files
committed
Add SUPPRESS_LOGS to environment mocks
1 parent f6d5a5d commit 32785bb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

api/src/__test__/graphql/resolvers/rclone-api.service.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ vi.mock('@app/store/index.js', () => ({
5151
}));
5252
vi.mock('@app/environment.js', () => ({
5353
ENVIRONMENT: 'development',
54+
SUPPRESS_LOGS: false,
55+
LOG_LEVEL: 'INFO',
5456
environment: {
5557
IS_MAIN_PROCESS: true,
5658
},

api/src/unraid-api/cli/nodemon.service.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ vi.mock('@app/core/utils/files/file-exists.js', () => ({
1616
fileExists: vi.fn().mockResolvedValue(false),
1717
}));
1818
vi.mock('@app/environment.js', () => ({
19+
LOG_LEVEL: 'INFO',
20+
SUPPRESS_LOGS: false,
1921
NODEMON_CONFIG_PATH: '/etc/unraid-api/nodemon.json',
2022
NODEMON_PATH: '/usr/bin/nodemon',
2123
NODEMON_PID_PATH: '/var/run/unraid-api/nodemon.pid',

0 commit comments

Comments
 (0)