Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/lukebennett88/luke-ui. luke-ui.pages.dev
Something went wrong. Try again.
TypeScript
at main
1234567891011121314151617181920// Built components require the built stylesheet's class names and layer order.import '@luke-ui/react/stylesheet.css';import '@luke-ui/react/themes/paper/stylesheet.css';import '@luke-ui/react/themes/tactile/stylesheet.css';import { afterEach, beforeEach } from 'vite-plus/test';import { DESKTOP_SCREEN_WIDTH, mockScreenWidth } from './mock-screen-width.js';import { cleanupMountedRenders } from './render-mount-state.js';import { parkPointer } from './visual.js';
(globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
beforeEach(() => { mockScreenWidth(DESKTOP_SCREEN_WIDTH);});
afterEach(async () => { cleanupMountedRenders(); await parkPointer();});