6a38be6239
* Refactor node creation in FlowDiagram Signed-off-by: Anil Dhurjaty <anil.dhurjaty@appfolio.com> * Fix flow diagram incorrect branching display Signed-off-by: Anil Dhurjaty <anil.dhurjaty@appfolio.com> * Enable react unit testing with vitest Signed-off-by: Anil Dhurjaty <anil.dhurjaty@appfolio.com> * Add react tests for FlowDiagram Signed-off-by: Anil Dhurjaty <anil.dhurjaty@appfolio.com> * Add cypress test for browser flow diagram Signed-off-by: Anil Dhurjaty <anil.dhurjaty@appfolio.com> --------- Signed-off-by: Anil Dhurjaty <anil.dhurjaty@appfolio.com>
30 lines
647 B
TypeScript
30 lines
647 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import { checker } from "vite-plugin-checker";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: "",
|
|
server: {
|
|
port: 8080,
|
|
},
|
|
build: {
|
|
sourcemap: true,
|
|
target: "esnext",
|
|
modulePreload: false,
|
|
cssMinify: "lightningcss",
|
|
rollupOptions: {
|
|
external: ["react", "react/jsx-runtime", "react-dom"],
|
|
},
|
|
},
|
|
plugins: [react(), checker({ typescript: true })],
|
|
test: {
|
|
watch: false,
|
|
environment: "jsdom",
|
|
server: {
|
|
deps: {
|
|
inline: [/@patternfly\/.*/],
|
|
},
|
|
},
|
|
},
|
|
});
|