diff --git a/apps/zui/jest.config.js b/apps/zui/jest.config.js index 3e9482c9db..8cdea607b6 100644 --- a/apps/zui/jest.config.js +++ b/apps/zui/jest.config.js @@ -10,6 +10,7 @@ const moduleNameMapper = pathsToModuleNameMapper(config.compilerOptions.paths, { module.exports = { transform: { "^.+\\.(t|j)sx?$": ["@swc/jest"], + ".+\\.(css|styl|less|sass|scss)$": "jest-css-modules-transform", }, setupFiles: ["./src/test/unit/setup/before-env.ts"], setupFilesAfterEnv: ["./src/test/unit/setup/after-env.ts"], diff --git a/apps/zui/package.json b/apps/zui/package.json index 9b60d5598e..834e71cd7e 100644 --- a/apps/zui/package.json +++ b/apps/zui/package.json @@ -16,12 +16,14 @@ "start:main": "yarn build:main --watch", "start:renderer": "next dev", "start:electron": "nodemon --watch dist ../../node_modules/electron/cli.js .", + "watch-code": "run-p start:main start:renderer", "build": "run-p -l 'build:**'", "build:main": "node scripts/esbuild.mjs", "build:renderer": "next build", "clean": "node scripts/clean", "test": "jest", "format": "prettier '**/*.{js,ts,tsx,scss}' --write --loglevel warn", + "tsc": "tsc", "postinstall": "node scripts/post-install", "prepare": "husky install", "package": "electron-builder --publish never", @@ -62,7 +64,7 @@ "@types/react-dom": "^18.0.1", "@types/react-redux": "^7.1.25", "@types/react-router": "^5.1.11", - "@types/react-transition-group": "^4.4.0", + "@types/react-transition-group": "^4.4.6", "@types/react-window": "^1.8.5", "@types/semver": "^7.3.3", "@types/sprintf-js": "^1.1.2", @@ -85,7 +87,7 @@ "electron": "22.3.25", "electron-builder": "^23.6.0", "electron-builder-notarize": "^1.2.0", - "electron-devtools-installer": "^3.2.0", + "electron-devtools-assembler": "^1.2.0", "electron-dl": "^3.0.1", "electron-localshortcut": "^3.2.1", "electron-log": "5.0.0-beta.6", @@ -106,6 +108,7 @@ "husky": "^7.0.4", "is-wsl": "^2.2.0", "jest": "^28.0.0", + "jest-css-modules-transform": "^4.4.2", "jest-environment-jsdom": "^28.0.0", "jwt-decode": "^3.1.2", "lint-staged": "^12.1.5", @@ -139,7 +142,7 @@ "react-router": "5.3.1", "react-spring": "^8.0.27", "react-tooltip": "^4.2.7", - "react-transition-group": "^2.9.0", + "react-transition-group": "^4.4.5", "react-window": "^1.8.7", "regenerator-runtime": "^0.13.6", "reselect": "4.0.0", diff --git a/apps/zui/pages/detail.tsx b/apps/zui/pages/detail.tsx index bfe6e1b4f8..323c8bd170 100644 --- a/apps/zui/pages/detail.tsx +++ b/apps/zui/pages/detail.tsx @@ -34,7 +34,6 @@ export default function DetailPage() { return ( -