UNPKG

console-fail-test

Version:

Gently fails test runs if the console was used during them. 📢

26 lines • 560 B
const selectVitestEnvironment = () => { if (typeof __vitest_index__ === "undefined") { return void 0; } const vitest = __vitest_index__; let afterEachCallback; let beforeEachCallback; vitest.afterEach(() => { afterEachCallback?.(); }); vitest.beforeEach(() => { beforeEachCallback?.(); }); return { afterEach: (callback) => { afterEachCallback = callback; }, beforeEach: (callback) => { beforeEachCallback = callback; } }; }; export { selectVitestEnvironment }; //# sourceMappingURL=vitest.js.map