no log: Fix test environment

pull/1791/head v1.0.4-beta.18
LASER-Yi 3 years ago
parent 0efa73670c
commit ea9ad0625f

@ -44,7 +44,7 @@
"eslint-config-react-app": "^7.0.0",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^7",
"jsdom": "*",
"jsdom": "latest",
"lodash": "^4",
"moment": "^2.29.1",
"prettier": "^2",
@ -58,9 +58,9 @@
"rooks": "^5.7.1",
"sass": "^1",
"typescript": "^4",
"vite": "*",
"vite": "latest",
"vite-plugin-checker": "^0.3.4",
"vitest": "*"
"vitest": "latest"
}
},
"node_modules/@babel/code-frame": {

@ -1,6 +1,6 @@
export const isDevEnv = import.meta.env.DEV;
export const isProdEnv = import.meta.env.PROD;
export const isTestEnv = false;
export const isDevEnv = import.meta.env.MODE === "development";
export const isProdEnv = import.meta.env.MODE === "production";
export const isTestEnv = import.meta.env.MODE === "test";
export const Environment = {
get apiKey(): string | undefined {

Loading…
Cancel
Save