deno.land / std@0.224.0 / expect / _snapshot_serializer.ts

_snapshot_serializer.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import type { SnapshotPlugin } from "./_types.ts";
let INTERNAL_PLUGINS: SnapshotPlugin[] = [ // Todo: support serialize plugin];
export function addSerializer(plugin: SnapshotPlugin): void { INTERNAL_PLUGINS = [plugin, ...INTERNAL_PLUGINS];}
export function getSerializer() { return INTERNAL_PLUGINS;}
std

Version Info

Tagged at
6 months ago