create-plume-react-project
Version:
CLI to create Plume React Project
8 lines (6 loc) • 407 B
text/typescript
// @ts-expect-error IDE can well reference the type but tsc can not
import { ViteHotContext } from 'vite/types/hot';
// This is needed in order to mock the import.meta.hot object which is not available in Jest
// See https://github.com/kulshekhar/ts-jest/issues/3888
// eslint-disable-next-line import/prefer-default-export
export const viteHotContext: { hot?: ViteHotContext } = { hot: import.meta.hot };