mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-09-14 16:13:57 +00:00
add test for config:check (#3886)
This commit is contained in:
@@ -24,7 +24,7 @@ Thanks to: @dathbe.
|
|||||||
- [clock] Add CSS to prevent line breaking of sunset/sunrise time display (#3816)
|
- [clock] Add CSS to prevent line breaking of sunset/sunrise time display (#3816)
|
||||||
- [core] Enhance system information logging format and include additional env and RAM details (#3839, #3843)
|
- [core] Enhance system information logging format and include additional env and RAM details (#3839, #3843)
|
||||||
- [refactor] Add new file `js/module_functions.js` to move code used in several modules to one place (#3837)
|
- [refactor] Add new file `js/module_functions.js` to move code used in several modules to one place (#3837)
|
||||||
- [refactor] Use global.root_path where possible (#3883, #3885)
|
- [refactor] Use global.root_path where possible and add test for config:check (#3883, #3885, #3886)
|
||||||
- [tests] refactor: simplify jest config file (#3844)
|
- [tests] refactor: simplify jest config file (#3844)
|
||||||
- [tests] refactor: extract constants for weather electron tests (#3845)
|
- [tests] refactor: extract constants for weather electron tests (#3845)
|
||||||
- [tests] refactor: add `setupDOMEnvironment` helper function to eliminate repetitive JSDOM setup code (#3860)
|
- [tests] refactor: add `setupDOMEnvironment` helper function to eliminate repetitive JSDOM setup code (#3860)
|
||||||
|
@@ -24,3 +24,11 @@ describe("App environment", () => {
|
|||||||
expect(res.status).toBe(404);
|
expect(res.status).toBe(404);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe("Check config", () => {
|
||||||
|
it("config check should return without errors", async () => {
|
||||||
|
process.env.MM_CONFIG_FILE = "tests/configs/default.js";
|
||||||
|
const serverProcess = await require("node:child_process").spawnSync("node", ["--run", "config:check"], { env: process.env });
|
||||||
|
expect(serverProcess.stderr.toString()).toBe("");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
Reference in New Issue
Block a user