mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-30 09:37:55 +08:00
18 lines
474 B
JavaScript
18 lines
474 B
JavaScript
import {
|
|
describe, it, test, expect, vi,
|
|
afterEach, afterAll, beforeEach, beforeAll,
|
|
} from "vitest";
|
|
|
|
global.nextTick = () => new Promise((done) => setTimeout(done, 0));
|
|
global.requestAnimationFrame = (callback) => setTimeout(callback, 0);
|
|
|
|
global.describe = describe;
|
|
global.it = it;
|
|
global.test = test;
|
|
global.expect = expect;
|
|
global.vi = vi;
|
|
global.beforeEach = beforeEach;
|
|
global.beforeAll = beforeAll;
|
|
global.afterEach = afterEach;
|
|
global.afterAll = afterAll;
|