\u003C/button>\n \u003C/div>\n\u003C/template>\n\n\u003Cscript setup lang=\"ts\">\ndefineOptions({ inheritAttrs: false })\n\u003C/script>\n```\n\nThe first test below using `mountSuspended` will fail because the attribute is missing, whereas the test using ` mount` from ` @vue/test-utils` works as expected.\n\n``` ts\nimport { test, expect } from 'vitest'\nimport { mount } from '@vue/test-utils'\nimport { mountSuspended } from '@nuxt/test-utils/runtime'\nimport ExampleComponent from '~/app/components/ExampleComponent.vue'\n\ntest('with mountSuspended', async () => {\n const wrapper = await mountSuspended(ExampleComponent, { attrs: { 'aria-label': 'Aria Label' } })\n expect(wrapper.find('[aria-label=\"Aria Label\"]').exists()).toBe(true)\n})\n\n\ntest('with mount', () => {\n const wrapper = mount(ExampleComponent, { attrs: { 'aria-label': 'Aria Label' } })\n expect(wrapper.find('[aria-label=\"Aria Label\"]').exists()).toBe(true)\n})\n```\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3113],{"name":3019,"color":3020},"`mountSuspended` fails to pass attributes when `inheritAttrs` is false","2025-02-01T13:02:07Z","https://github.com/nuxt/test-utils/issues/1092",{"description":3118,"labels":3119,"number":3124,"owner":3022,"repository":3022,"state":3067,"title":3125,"updated_at":3126,"url":3127,"score":3128},"### Describe the feature\n\nWe currently have the following scenario, we use the nitro server as a small backend in our application and need to dynamically load various environment variables when starting the server. \r\n\r\nIn this process we have the problem that there is no hook available after the server start and before the first execution of the server middleware. Since our server middleware also accesses a database, we would need to run our setup script before running the middleware for the first time. \r\n\r\nFor us also build time scripts do not solve our problems because we build docker images to deploy our application so some varaibles and files we need are not available in the build time.\r\n\r\nMy suggestion would be to provide a hook that covers exactly this scenario e.g. \"nitro:ready\" or \"server:ready\"\r\n\r\nThere some questions out there which are related to my topic like:\r\nhttps://stackoverflow.com/questions/66931971/best-way-to-run-some-code-only-once-on-server-start-in-nuxt-js-and-not-during-b\r\n\r\nhttps://github.com/nuxt/nuxt/discussions/15886\r\n\r\nI hope the requirements are clear and understandable.\r\n\r\nIf there is another way, to perform this script to so,ve this issue please let me know :)\n\n### Additional information\n\n- [ ] Would you be willing to help implement this feature?\n- [ ] Could this feature be implemented as a module?\n\n### Final checks\n\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[3120,3123],{"name":3121,"color":3122},"3.x","29bc7f",{"name":3019,"color":3076},22486,"Runtime Hook to perform setup scripts directly after server startup","2023-08-04T18:46:26Z","https://github.com/nuxt/nuxt/issues/22486",0.8051043,{"description":3130,"labels":3131,"number":3134,"owner":3022,"repository":3022,"state":3067,"title":3135,"updated_at":3136,"url":3137,"score":3138},"### What problem does this feature solve?\n\ni am changing the options.srcDir on build time, to include several files from other locations. in the builder.js watchClient() is being called on the build:done hook. i want this call to be without hooks and before build:done so i can change the srcDir to the appropriate folder.\n\n\n### What does the proposed changes look like?\n\n if (this.options.dev) {\n // Start watching after initial render\n this.nuxt.hook('build:done', () => {\n consola.info('Waiting for file changes');\n this.watchClient();\n });\n\n // Stop watching on nuxt.close()\n this.nuxt.hook('close', () => this.unwatch());\n }\n\nto \n\n if (this.options.dev) {\n // Start watching after initial render\n consola.info('Waiting for file changes');\n this.watchClient();\n // Stop watching on nuxt.close()\n this.nuxt.hook('close', () => this.unwatch());\n }\n // Call done hook\n await this.nuxt.callHook('build:done', this);\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This feature request is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c8416\">#c8416\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[3132,3133],{"name":3088,"color":3089},{"name":3091,"color":3092},4699,"call watchClient() without using a hook","2023-02-17T00:09:14Z","https://github.com/nuxt/nuxt/issues/4699",0.8153445,["Reactive",3140],{},["Set"],["ShallowReactive",3143],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f-ZCq8nFWncYNjL3uXQ3khDdATv79rFoZwExCJDuvAVc":-1},"/nuxt/nuxt.com/1154"]