All files / expect / _serializer.ts

100.00% Branches 0/0
100.00% Lines 8/8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
 
 
 
x101
 
x101
 
x101
x103
x103
 
x101
x103
x103













// Copyright 2018-2025 the Deno authors. MIT license.

import type { SnapshotPlugin } from "./_types.ts";

const INTERNAL_PLUGINS: SnapshotPlugin[] = [
  // TODO(eryue0220): support internal snapshot serializer plugins
];

export function addSerializer(plugin: SnapshotPlugin) {
  INTERNAL_PLUGINS.unshift(plugin);
}

export function getSerializer() {
  return INTERNAL_PLUGINS;
}