@given3/node
v2.1.0
Published
Node adapter for Given3
Downloads
7
Maintainers
Readme
given3/node
Given3 is a testing framework for TypeScript that allows you to write tests in a more readable and expressive way. It is a spiritual successor to Given2 but extends it with more powerful caching and typescript support.
Installation
npm install --save-dev @given3/nodeUsage
import { given } from "@given3/node";
import { describe, it, expect } from "node:test";
describe("my test", () => {
const user = given(() => ({ name: "John", age: 30 }));
it("should be able to access the user", () => {
expect(user.value.name).toBe("John");
});
});For more examples see our documentation
