test(js): add vitest

This commit is contained in:
Paul Chavard 2022-07-05 13:38:00 +02:00
parent 222cb1e557
commit 2c3503d7d0
7 changed files with 505 additions and 17 deletions

View file

@ -118,7 +118,7 @@ export function httpRequest(
init.body = JSON.stringify(json);
}
let timer: number;
let timer: ReturnType<typeof setTimeout>;
if (!init.signal) {
controller = createAbortController(controller);
if (controller) {