Skip to content

runNotifyAdapterConformance

runNotifyAdapterConformance(factory, options?): Promise<ConformanceReport>

Defined in: packages/core/src/conformance/notify-adapter.ts:29

Run the notify adapter conformance suite against a user-supplied adapter. Test-framework agnostic: designed to be embedded in a single test (vitest test(), bun test(), node:test, etc.). Throws ConformanceError with an aggregated report on any failure.

() => Promise<NotifyConformanceFixture>

NotifyConformanceOptions

Promise<ConformanceReport>

await runNotifyAdapterConformance(async () => {
const notifyAdapter = await createMyNotifyAdapter();
return {
notifyAdapter,
dispose: async () => notifyAdapter.close(),
};
});