\n\u003C!-- OR -->\n\u003CIcon name=\"my-icon:a\" v-if=\"flag\" />\n\u003CIcon name=\"my-icon:b\" v-else />\n```\nin `nuxt.config.ts`\n```ts\nicon: {\n provider: 'server',\n customCollections: [\n {\n prefix: 'my-icon',\n dir: './assets/icon/svg',\n },\n ],\n},\n// ...\nnitro: {\n preset: 'static',\n},\n```\n\nIf toggle value of `flag`, \neverything works well in development, \nbut it throws 404 error for `my-icon:b` after building and generating.\n(it works well with `v-show`) \n\nProject info:\n```\n------------------------------\n- Operating System: Windows_NT\n- Node Version: v22.8.0\n- Nuxt Version: 3.16.0\n- CLI Version: 3.23.0\n- Nitro Version: 2.11.6\n- Package Manager: pnpm@9.9.0\n- Builder: -\n- User Config: modules, icon, colorMode, shadcn, fonts, googleSignIn, app, imports, css, vite, nitro, compatibilityDate, telemetry\n- Runtime Modules: @nuxtjs/tailwindcss@6.13.2, @nuxt/icon@1.11.0, @nuxt/fonts@0.11.0, @nuxt/image@1.9.0, @nuxt/eslint@1.2.0, @pinia/nuxt@0.10.1, pinia-plugin-persistedstate/nuxt@4.2.0, @nuxt/test-utils/module@3.17.2, @nuxtjs/color-mode@3.5.2, shadcn-nuxt@1.0.3, @vueuse/nuxt@13.0.0, nuxt-vue3-google-signin@0.0.11\n- Build Modules: -\n------------------------------\n```\n",[],380,"nuxt","icon","open","Local icon 404 after `nuxi generating` if with `:name=\"flag?'my-icon:icon-a':'my-icon:icon-b'\"`","2025-03-26T15:31:52Z","https://github.com/nuxt/icon/issues/380",0.679921,{"description":2876,"labels":2877,"number":2887,"owner":2868,"repository":2868,"state":2870,"title":2888,"updated_at":2889,"url":2890,"score":2891},"### Discussed in https://github.com/nuxt/nuxt/discussions/25825\r\n\r\n\u003Cdiv type='discussions-op-text'>\r\n\r\n\u003Csup>Originally posted by **lna1989** February 16, 2024\u003C/sup>\r\n'1.testPlugin.ts' plugin in the layer connected via an auto import and '1.testPlugin.ts' in App. layers connected to app in nuxt.config.ts.\r\n\r\nDemo: https://stackblitz.com/edit/nuxt-starter-2r7whv?file=nuxt.config.ts\r\n\r\n./layer/plugins/1.testPlugin.ts:\r\n```javascript\r\nimport { defineNuxtPlugin } from '#imports'\r\n\r\nexport default defineNuxtPlugin((nuxtApp) => {\r\n console.log('Layer testPlugin.ts')\r\n})\r\n```\r\n\r\n./plugins/1.testPlugin.ts:\r\n```javascript\r\nimport { defineNuxtPlugin } from '#imports'\r\n\r\nexport default defineNuxtPlugin((nuxtApp) => {\r\n console.log('App testPlugin.ts')\r\n})\r\n```\r\n\r\n\r\nThe expected result: We see one message (\"App testPlugin.ts'\") from the App plugin in the console.\r\nThe actual result: We see two messages (\"Layer testPlugin.ts'\" and \"'App testPlugin.ts'\") in the console from both the layers plugin and the app.\u003C/div>",[2878,2881,2884],{"name":2879,"color":2880},"enhancement","8DEF37",{"name":2882,"color":2883},"🍰 p2-nice-to-have","0E8A16",{"name":2885,"color":2886},"layers","006B75",27047,"How override plugins from Nuxt Layer in app?","2024-10-22T06:58:41Z","https://github.com/nuxt/nuxt/issues/27047",0.6819353,{"description":2893,"labels":2894,"number":2901,"owner":2868,"repository":2902,"state":2870,"title":2903,"updated_at":2904,"url":2905,"score":2906},"### Description\n\nHi Nuxt UI team 👋\n\nI'm writing tests for components that use Nuxt UI elements like `UTooltip`, and I’ve run into the common injection error:\n\n```\nError: Injection `Symbol(TooltipProviderContext)` not found. Component must be used within `TooltipProvider`\n```\n\nI understand this is because components like `UTooltip` rely on context providers that are normally set up in `\u003CUApp>`. \n\n### Questions:\n\n1. What’s the recommended approach to testing Nuxt UI components like UTooltip, UModal, etc. — especially those that rely on context providers — when using @nuxt/test-utils and @vue/test-utils?\n2. Is wrapping the test component with `\u003CUApp>` considered best practice for these cases? What's the best way to do so? \n3. Could this pattern be documented in Nuxt UI’s testing section (or Nuxt docs) for clarity?\n\nThanks so much for your attention.\n",[2895,2898],{"name":2896,"color":2897},"question","d876e3",{"name":2899,"color":2900},"v3","49DCB8",4295,"ui","Recommended way to test Nuxt UI components in a Nuxt context","2025-06-05T11:06:58Z","https://github.com/nuxt/ui/issues/4295",0.691352,{"description":2908,"labels":2909,"number":2913,"owner":2868,"repository":2868,"state":2914,"title":2915,"updated_at":2916,"url":2917,"score":2918},"Hello, \r\n\r\nI'm thinking about creating a module providing some testing configuration. The plugin would work with [Jest](https://facebook.github.io/jest), allowing to unit test components, vuex stores, plugins… The whole configuration will be already done, and developers would just have to include it.\r\n\r\nBut, before getting started, I'd like some information :\r\n\r\n1. Is such plugin welcome ? Or do you plan to support testing natively in Nuxt ?\r\n1. The plugin would provide a testing script, is it possible from a module to extend the Nuxt scripts (And provide `nuxt test` for exemple) ?\r\n\r\nFor now, I implemented some testing setup here : https://github.com/antoinerey/nuxt-jest\r\n\r\n**Edit**: The more I think about it, the more I feel like it'd be better to make a vue-cli plugin. What do you think ?\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This question is available on \u003Ca href=\"https://nuxtjs.cmty.io\">Nuxt.js\u003C/a> community (\u003Ca href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2610\">#c2610\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2910],{"name":2911,"color":2912},"2.x","d4c5f9",3013,"closed","Testing module","2023-01-18T16:09:51Z","https://github.com/nuxt/nuxt/issues/3013",0.6449572,{"description":2920,"labels":2921,"number":2922,"owner":2868,"repository":2923,"state":2914,"title":2924,"updated_at":2925,"url":2926,"score":2927},"Right now the docs has a quite limitation and there is no guidance on integrating with a full Nuxt app which contains pages with may api calls, not just plugin or components let alone ts module import.\r\n\r\nIt would be much appreciated if you can expand the docs on for a more specific cases or may be some examples on this repo or say a fiddle, codepen, codesandbox ?",[],265,"test-utils","more docs on how to mock test for a page","2023-12-02T00:18:11Z","https://github.com/nuxt/test-utils/issues/265",0.65188235,{"description":2920,"labels":2929,"number":2930,"owner":2868,"repository":2923,"state":2914,"title":2924,"updated_at":2931,"url":2932,"score":2927},[],355,"2023-12-02T00:13:09Z","https://github.com/nuxt/test-utils/issues/355",{"description":2934,"labels":2935,"number":2942,"owner":2868,"repository":2868,"state":2914,"title":2943,"updated_at":2944,"url":2945,"score":2946},"### Describe the feature\r\n\r\nAfter reading [Testing-Get started docs](https://nuxt.com/docs/getting-started/testing#unit-testing) I had confusion on whether I could use the already existing `@vue/test-utils`. I was able to do it after following a guide I found online and it worked just fine.\r\n\r\nI wanted to raise this topic and ask if you think it would be useful to also add a section on how to set this in a new Nuxt 3 project? Was thinking just a basic step-by-step process on how to add `@vue/test-utils`, `vitest` and `happy-dom` and spin up a simple Unit test.\r\n\r\nI know we already have `@nuxt/test-utils` but in some old projects it might be useful to also have a short guide on `@vue/test-utils`. What do you think?\r\n\r\n### Additional information\r\n\r\n- [X] Would you be willing to help implement this feature?\r\n- [ ] Could this feature be implemented as a module?\r\n\r\n### Final checks\r\n\r\n- [X] Read the [contribution guide](https://nuxt.com/docs/community/contribution).\r\n- [X] Check existing [discussions](https://github.com/nuxt/nuxt/discussions) and [issues](https://github.com/nuxt/nuxt/issues).",[2936,2939],{"name":2937,"color":2938},"documentation","5319e7",{"name":2940,"color":2941},"3.x","29bc7f",26178,"Docs: Add @vue/test-utils example in Getting started with Unit testing","2024-04-19T14:16:01Z","https://github.com/nuxt/nuxt/issues/26178",0.66667587,{"description":2948,"labels":2949,"number":2950,"owner":2868,"repository":2923,"state":2914,"title":2951,"updated_at":2952,"url":2953,"score":2954},"Hello Nuxt community team. Thanks for the great work with this package. I'm trying to test some nuxt modules I've built. Unfortunately there is no clear way of setting it up. The documentation on the README wasn't very helpful. I'll be happy to return to this when I'm able to get some help. Thanks!",[],288,"Documentation","2023-12-02T00:23:09Z","https://github.com/nuxt/test-utils/issues/288",0.67050797,{"labels":2956,"number":2959,"owner":2868,"repository":2868,"state":2914,"title":2960,"updated_at":2961,"url":2962,"score":2963},[2957,2958],{"name":2937,"color":2938},{"name":2940,"color":2941},14624,"Documentation Improvement: nuxtApp, useNuxtApp, composables, plugins","2023-02-08T15:59:24Z","https://github.com/nuxt/nuxt/issues/14624",0.67324567,{"description":2965,"labels":2966,"number":2972,"owner":2868,"repository":2868,"state":2914,"title":2973,"updated_at":2974,"url":2975,"score":2976},"### Environment\r\n\r\nNot Applicable\r\n\r\n### Reproduction\r\n\r\n1. Go on https://nuxt.com/docs/community/roadmap\r\n2. Check that there is no mention of `@nuxt/test-utils`\r\n\r\n### Describe the bug\r\n\r\n(Not really a bug, but not really a feature request)\r\n\r\nThe testing section is mentioning that `@nuxt/test-utils` is still in development (https://nuxt.com/docs/getting-started/testing) but I cannot seem to find any place where there are some ETA or rough estimation.\r\n\r\nTo me, the Roadmap page is the perfect place for such information https://nuxt.com/docs/community/roadmap.\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Logs\r\n\r\n_No response_",[2967,2968,2971],{"name":2937,"color":2938},{"name":2969,"color":2970},"good first issue","fbca04",{"name":2940,"color":2941},22577,"add documentation for `@nuxt/test-utils`","2023-12-19T13:33:54Z","https://github.com/nuxt/nuxt/issues/22577",0.6789996,["Reactive",2978],{},["Set"],["ShallowReactive",2981],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fxpTMBvnweQXnUm2TN7CjZPixIrJCpIYshmqH4GYsBlA":-1},"/nuxt/test-utils/313"]