1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
x103 x103 x103 x109 x109 x103 x111 x111 x103 x588 x588 x588 |
// Copyright 2018-2025 the Deno authors. MIT license.
import { getAssertionState } from "@std/internal/assertion-state";
const assertionState = getAssertionState();
export function hasAssertions() {
assertionState.setAssertionCheck(true);
}
export function assertions(num: number) {
assertionState.setAssertionCount(num);
}
export function emitAssertionTrigger() {
assertionState.setAssertionTriggered(true);
assertionState.updateAssertionTriggerCount();
}
|