Skip to content

All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.

517 B
Raw Blame
// TwinDesk — Copyright (C) 2026 inukaasith, Erdoğan Yeşil. GPL-3.0, see LICENSE.
// Runs the tests of one file in order; prints "passed: <name>" per test, exits 1 on any failure.
'use strict';

async function runTests(tests) {
  let failed = 0;
  for (const [name, fn] of tests) {
    try {
      await fn();
      console.log(`passed: ${name}`);
    } catch (e) {
      failed++;
      console.log(`FAILED: ${name}\n${e.stack || e}`);
    }
  }
  process.exit(failed ? 1 : 0);
}

module.exports = { runTests };