import { describe, expect, test } from "vitest";
import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/super-json-serde-adapter";
import { flexibleSerdeAdapterTestSuite } from "@daiso-tech/core/serde/test-utilities";
describe("class: SuperJsonSerdeAdapter", () => {
flexibleSerdeAdapterTestSuite({
createAdapter: () => new SuperJsonSerdeAdapter(),
expect,
test,
});
});
The
flexibleSerdeAdapterTestSuitefunction simplifies the process of testing your custom implementation ofIFlexibleSerdeAdapterwithvitest.IMPORT_PATH:
"@daiso-tech/core/serde/test-utilities"