All files / expect / _extend.ts

100.00% Branches 0/0
100.00% Functions 2/2
100.00% Lines 10/10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
 
 
 
x105
 
x105
x702
x702
 
x105
x3
x3
x3
x3
x3














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

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

let extendMatchers = {};

export function getExtendMatchers() {
  return extendMatchers;
}

export function setExtendMatchers(newExtendMatchers: Matchers) {
  extendMatchers = {
    ...extendMatchers,
    ...newExtendMatchers,
  };
}