History

fix: make tests OS-agnostic for Windows compatibility

Tito committed 7 months ago

Commit d520e081 parent b3b03be4 files · +17 −9Browse files

Showing the changes to packages/kernel/runtime-secure-exec/src (1 of 4 files). Show all

Unified · Split

packages/kernel/runtime-secure-exec/src/index.test.ts+4−2
@@ -1,4 +1,5 @@
1−import { describe, expect, it } from "@effect/vitest";
1+import { expect, it } from "@effect/vitest";
2+import { describe } from "vitest";
23 import { assertInclude } from "@effect/vitest/utils";
34 import * as Data from "effect/Data";
45 import * as Effect from "effect/Effect";
@@ -36,7 +37,8 @@ const makeTestInvoker = ( · 31 unmodified lines
3637
3738 const executor = makeSecureExecExecutor({ timeoutMs: 5_000 });
3839
39−describe("secure-exec executor", () => {
40+// secure-exec-v8 does not ship a Windows binary — skip on win32
41+describe.skipIf(process.platform === "win32")("secure-exec executor", () => {
4042 it.effect("runs plain code", () =>
4143 Effect.gen(function* () {
4244 const result = yield* executor.execute("return 1 + 2", makeTestInvoker({}));