revert: "build: Migrate to Vite 🚀" (#6814)
Revert "build: Migrate to Vite 🚀 (#6713)"
This reverts commit e93bbc5776.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { vi } from "vitest";
|
||||
import ReactDOM from "react-dom";
|
||||
import {
|
||||
render,
|
||||
@@ -22,14 +21,14 @@ const { h } = window;
|
||||
|
||||
const mouse = new Pointer("mouse");
|
||||
|
||||
vi.mock("../keys.ts", async (importOriginal) => {
|
||||
const module: any = await importOriginal();
|
||||
jest.mock("../keys.ts", () => {
|
||||
const actual = jest.requireActual("../keys.ts");
|
||||
return {
|
||||
__esmodule: true,
|
||||
...module,
|
||||
...actual,
|
||||
isDarwin: false,
|
||||
KEYS: {
|
||||
...module.KEYS,
|
||||
...actual.KEYS,
|
||||
CTRL_OR_CMD: "ctrlKey",
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user