[READ-ONLY] Mirror of https://github.com/bombshell-dev/playground.
0

Configure Feed

Select the types of activity you want to include in your feed.

♻️ port freedom test harness to vitest

Charles Lowell (Jun 24, 2026, 9:50 PM -0500) 1ffe7b75 6c8e9bc2

+11 -12
+1 -1
packages/freedom/test/focus.test.ts
··· 11 11 set, 12 12 useFocus, 13 13 useTree, 14 - } from "../mod.ts"; 14 + } from "../src/index.ts"; 15 15 16 16 describe("Focus installation", () => { 17 17 it("FI1-FI3: useFocus sets root as focused", async () => {
+1 -1
packages/freedom/test/freedom.test.ts
··· 11 11 update, 12 12 useNode, 13 13 useTree, 14 - } from "../mod.ts"; 14 + } from "../src/index.ts"; 15 15 16 16 describe("JsonValue validation", () => { 17 17 it("JV1-JV12: accepts valid JsonValues", async () => {
+8 -8
packages/freedom/test/helpers.ts
··· 1 - import { expect as stdExpect } from "@std/expect"; 2 - import type { Expected } from "@std/expect"; 1 + import { expect as viExpect } from "vitest"; 3 2 import { type Operation, sleep } from "effection"; 4 - import type { Node } from "../mod.ts"; 3 + import type { Node } from "../src/index.ts"; 5 4 6 - interface NodeExpected extends Expected { 5 + type Assertion = ReturnType<typeof viExpect>; 6 + type NodeExpected = Assertion & { 7 7 toEval(fn: () => Operation<void>): Operation<void>; 8 - } 8 + }; 9 9 10 10 export function expect(value: Node): NodeExpected; 11 - export function expect<T>(value: T): Expected; 12 - export function expect(value: unknown): NodeExpected | Expected { 13 - let base = stdExpect(value); 11 + export function expect<T>(value: T): Assertion; 12 + export function expect(value: unknown): NodeExpected | Assertion { 13 + let base = viExpect(value); 14 14 if (value && typeof value === "object" && "eval" in value) { 15 15 let node = value as Node; 16 16 return new Proxy(base as unknown as NodeExpected, {
+1 -2
packages/freedom/test/suite.ts
··· 1 - export { afterEach, beforeEach, describe, it } from "@std/testing/bdd"; 2 - export { expect } from "@std/expect"; 1 + export { afterEach, beforeEach, describe, it, expect } from "vitest";