UNPKG

create-plume-react-project

Version:
8 lines (6 loc) 407 B
// @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 };