mirror of
https://github.com/goauthentik/authentik
synced 2026-04-27 09:57:31 +02:00
* Fix config. * Fix linter. * Fix ts ignore comments. * Fix empty functions * Fix unnamed functions. * Fix unused parameters. * Fix define before use. * Remove unused. * Replace esbuild-copy-plugin with `fs` module. --------- Co-authored-by: Teffen Ellis <teffen@goauthentik.io>
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
import { LitViteContext } from "./rendering.js";
|
|
|
|
import { page } from "@vitest/browser/context";
|
|
import { beforeEach } from "vitest";
|
|
|
|
page.extend({
|
|
// @ts-expect-error Extension is not properly typed.
|
|
renderLit: LitViteContext.render,
|
|
[Symbol.for("vitest:component-cleanup")]: LitViteContext.cleanup,
|
|
});
|
|
|
|
beforeEach(() => LitViteContext.cleanup());
|