wms_worker_station_service/config/config.unittest.js
liufumingren 561cd27f81 初始化
2026-07-25 00:46:47 +08:00

35 lines
524 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
/**
* 单元测试环境配置
* 覆盖默认配置,避免测试时连接真实的数据库/Redis
*/
module.exports = () => {
const config = {};
// 禁用 MySQL(测试时不连数据库)
config.mysql = {
clients: {},
app: false,
agent: false,
};
// 禁用 Redis
config.redis = {
clients: {},
};
// 禁用 socket.io
config.io = {
enable: false,
};
// 关闭日志
config.logger = {
level: 'NONE',
consoleLevel: 'NONE',
};
return config;
};