Move slowTest and externalTest to test/common.js

These are used outside of the integration tests, but including the
integration index file causes the very slow setup of the contorller
and host.  Avoid the integration setup costs when running commands
such as `pnpm mocha test/lib` by moving these utility functions to
the common test functions.
This commit is contained in:
Hornwitser committed 2026-09-15 22:18:16 +02:00
1 parent ea1cb67502
commit 92d2662078
13 files changed
+38 -34

No files matched your search

+2 -2
View File
@@ -3,9 +3,9 @@ import assert from "node:assert/strict";
import * as lib from "@clusterio/lib";
import fs from "node:fs/promises";
import { testMatrix } from "../common.js";
import { slowTest, testMatrix } from "../common.js";
import {
slowTest, exec, execCtl, execCtlProcess, sendRcon, getControl,
execCtl, execCtlProcess, sendRcon, getControl,
requiresFactorio, hasFactorio, instancesDir,
} from "./index.js";