···11-import { expect as stdExpect } from "@std/expect";
22-import type { Expected } from "@std/expect";
11+import { expect as viExpect } from "vitest";
32import { type Operation, sleep } from "effection";
44-import type { Node } from "../mod.ts";
33+import type { Node } from "../src/index.ts";
5466-interface NodeExpected extends Expected {
55+type Assertion = ReturnType<typeof viExpect>;
66+type NodeExpected = Assertion & {
77 toEval(fn: () => Operation<void>): Operation<void>;
88-}
88+};
991010export function expect(value: Node): NodeExpected;
1111-export function expect<T>(value: T): Expected;
1212-export function expect(value: unknown): NodeExpected | Expected {
1313- let base = stdExpect(value);
1111+export function expect<T>(value: T): Assertion;
1212+export function expect(value: unknown): NodeExpected | Assertion {
1313+ let base = viExpect(value);
1414 if (value && typeof value === "object" && "eval" in value) {
1515 let node = value as Node;
1616 return new Proxy(base as unknown as NodeExpected, {
+1-2
packages/freedom/test/suite.ts
···11-export { afterEach, beforeEach, describe, it } from "@std/testing/bdd";
22-export { expect } from "@std/expect";
11+export { afterEach, beforeEach, describe, it, expect } from "vitest";