Logo
Explore Help
Sign In
kenmirrors/MagicMirror
1
0
Fork 0
You've already forked MagicMirror
mirror of https://github.com/MichMich/MagicMirror.git synced 2026-04-27 00:02:08 +00:00
Code Issues Projects Releases Wiki Activity
Files
develop
MagicMirror/tests/unit/classes/systeminformation_spec.js

8 lines
245 B
JavaScript
Raw Permalink Normal View History

[core] run systeminformation in subprocess so the info is always displayed (#4002) If an error occurs during startup, we request system information from the user. The problem is that this information is displayed too late, for example, if the configuration check fails. My initial idea was to use `await Utils.logSystemInformation(global.version);`, but this increased the startup time. Therefore, the function is now called in a subprocess. This approach provides the information in all cases and does not increase the startup time.
2026-01-03 01:14:48 +01:00
const SystemInformation = require("../../../js/systeminformation");
describe("SystemInformation", () => {
it("should output system information", async () => {
await expect(SystemInformation()).resolves.toContain("platform: linux");
});
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 1299ms Template repo/view: 97ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API