fix: update fallback (#5115)
* fix: update fallback * test: introduce Vitest and add semver helper tests * chore: merge vitest config into vite
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { defineConfig } from "vite";
|
||||
import path from "path";
|
||||
import svgr from "vite-plugin-svgr";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import path from "node:path";
|
||||
|
||||
import legacy from "@vitejs/plugin-legacy";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vitest/config";
|
||||
import monacoEditorPlugin, {
|
||||
type IMonacoEditorOpts,
|
||||
} from "vite-plugin-monaco-editor";
|
||||
import svgr from "vite-plugin-svgr";
|
||||
const monacoEditorPluginDefault = (monacoEditorPlugin as any).default as (
|
||||
options: IMonacoEditorOpts,
|
||||
) => any;
|
||||
@@ -159,6 +160,10 @@ export default defineConfig({
|
||||
"@root": path.resolve("."),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: "node",
|
||||
include: ["**/*.{test,spec}.{ts,tsx}"],
|
||||
},
|
||||
|
||||
define: {
|
||||
OS_PLATFORM: `"${process.platform}"`,
|
||||
|
||||
Reference in New Issue
Block a user