Something went wrong. Try again.
The format that's super! duper.dev.br
Something went wrong. Try again.
12345678910111213141516171819202122import { describe, expect, it } from "vitest";import { stringify } from "..";
describe("stringify", () => { it("stringifies a basic object", () => { const data = { name: "Wireless Headphones", price: 129.99, in_stock: true, tags: ["electronics", "audio"], }; const duper_string = stringify(data); expect(duper_string).toMatchSnapshot(); });
it("stringifies nested structures", () => { const data = ["foo", { bar: ["baz", { qux: null }] }]; const duper_string = stringify(data); expect(duper_string).toMatchSnapshot(); });});