import { describe, test, expect } from "vitest";
import { Serde } from "@daiso-tech/core/serde/implementations/derivables";
import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/implementations/adapters";
import { flexibleSerdeTestSuite } from "@daiso-tech/core/serde/implementations/test-utilities";
describe("class: Serde", () => {
flexibleSerdeTestSuite({
createSerde: () => new Serde(new SuperJsonSerdeAdapter()),
test,
expect,
});
});
The flexibleSerdeTestSuite function simplifies the process of testing your custom implementation of IFlexibleSerde with vitest.
IMPORT_PATH:
"@daiso-tech/core/serde/implementations/test-utilities"