\n \u003C/UTooltip>\n \u003Ctemplate #body>\n \u003Cdiv class=\"relative w-full h-[75vh]\">\n \u003CVueFlow v-if=\"isModalOpen\" :nodes=\"nodes\" :edges=\"edges\" :nodes-connectable=\"nodesConnectable\" @nodes-initialized=\"layoutGraph\" />\n \u003C/div>\n \u003C/template>\n \u003C/UModal>\n \u003C/ClientOnly>\n\u003C/template>\n\n\u003Cscript setup lang=\"ts\">\nimport { ref, } from 'vue';\nimport { useVueFlow, type Edge, type Node } from '@vue-flow/core'\n\nconst config = useRuntimeConfig();\n\n// Define the props with TypeScript\nconst { treeData } = defineProps\u003C{\n treeData: Array\u003CArray\u003Cnumber>>;\n prefix: string;\n}>();\n\nconst nodesConnectable = ref(false)\nconst isModalOpen = ref(false)\nconst hasParsedPaths = ref(false); // Flag to track if paths have been parsed\n\nconst nodes = ref\u003CNode[]>([]);\nconst edges = ref\u003CEdge[]>([]);\nconst { layout } = useLayout();\nconst { fitView, updateNodeInternals } = useVueFlow();\n\nfunction toggleModelState(event: boolean) {\n if (event === true) {\n // Workaround to fix issue with connectors/edges after transition has finisehd\n //\n setTimeout(() => {\n updateNodeInternals(); // re-calculate node positions\n }, 250);\n }\n isModalOpen.value = event;\n}\n\nasync function layoutGraph(): Promise\u003Cvoid> {\n nodes.value = layout(nodes.value, edges.value);\n await nextTick(() => {\n fitView();\n });\n}\n\u003C/script>\n\n```",[3090,3091,3094],{"name":3051,"color":3052},{"name":3092,"color":3093},"v3","49DCB8",{"name":3095,"color":3096},"triage","ffffff",4149,"Modal Component @after:enter event","2025-05-23T10:39:54Z","https://github.com/nuxt/ui/issues/4149",0.78174174,{"description":3103,"labels":3104,"number":3108,"owner":3019,"repository":3041,"state":3042,"title":3109,"updated_at":3110,"url":3111,"score":3112},"https://volta.s3.fr-par.scw.cloud/Screenshot_2022_04_26_at_15_17_43_ca013064d2.mp4\n",[3105],{"name":3106,"color":3107},"bug","ff281a",407,"`CMD+B` in editor should not open the branch modal","2022-04-26T14:28:31Z","https://github.com/nuxt/nuxt.com/issues/407",0.7820326,{"description":3114,"labels":3115,"number":3108,"owner":3019,"repository":3116,"state":3042,"title":3117,"updated_at":3118,"url":3119,"score":3112},"### Environment\n\n------------------------------\r\n- Operating System: `Linux`\r\n- Node Version: `v16.14.2`\r\n- Nuxt Version: `3.0.0`\r\n- Nitro Version: `1.0.0`\r\n- Package Manager: `npm@7.17.0`\r\n- Builder: `vite`\r\n- User Config: `-`\r\n- Runtime Modules: `-`\r\n- Build Modules: `-`\r\n------------------------------\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-5c4p72?file=test/default.test.ts\n\n### Describe the bug\n\n`@nuxt/test-utils` doesn't work with `jest` if one is to set it up in a way that Nuxt 3 documentation recommends (https://nuxt.com/docs/getting-started/testing#setup):\r\n\r\n```\r\n ● Test suite failed to run\r\n\r\n Returning a Promise from \"describe\" is not supported. Tests must be defined synchronously.\r\n\r\n 1 | import { setup } from '@nuxt/test-utils';\r\n 2 |\r\n > 3 | describe('Smoke test (default)', async () => {\r\n | ^\r\n 4 | await setup({});\r\n 5 |\r\n 6 | test('it goes well', async () => {\r\n\r\n at ErrorWithStack (node_modules/jest-util/build/ErrorWithStack.js:23:13)\r\n at Object.\u003Canonymous> (test/default.test.ts:3:9)\r\n at [object Object]\r\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[],"test-utils","Using `@nuxt/test-utils` with `jest` results in `Returning a Promise from \"describe\" is not supported`","2023-12-02T00:13:09Z","https://github.com/nuxt/test-utils/issues/407",["Reactive",3121],{},["Set"],["ShallowReactive",3124],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fuMXWXTf_zSecxjb7HhhZxTMw0sKr7qhMc9v88Qt1J0M":-1},"/nuxt/nuxt.com/1099"]