blob: 8cff0752c6eb6711448ac96b9a7f20e6a14d7852 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
window.add_result_callback(({ message, name, stack, status }) => {
Deno.writeAllSync(
Deno.stderr,
new TextEncoder().encode(
`${JSON.stringify({ name, status, message, stack })}\n`,
),
);
});
window.add_completion_callback((tests, harnessStatus) => {
Deno.exit(0);
});
|