\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.72492903,{"description":2876,"labels":2877,"number":2881,"owner":2868,"repository":2868,"state":2882,"title":2883,"updated_at":2884,"url":2885,"score":2886},"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>",[2878],{"name":2879,"color":2880},"2.x","d4c5f9",3013,"closed","Testing module","2023-01-18T16:09:51Z","https://github.com/nuxt/nuxt/issues/3013",0.6874705,{"description":2888,"labels":2889,"number":2896,"owner":2868,"repository":2868,"state":2882,"title":2897,"updated_at":2898,"url":2899,"score":2900},"For now, the [modules testing](https://v3.nuxtjs.org/getting-started/testing/#testing-modules) chapter is in the \"Getting Started\" section. We should move this section to the Modules Author guide",[2890,2893],{"name":2891,"color":2892},"documentation","5319e7",{"name":2894,"color":2895},"3.x","29bc7f",14962,"[Docs] Move modules testing section","2023-04-20T13:10:13Z","https://github.com/nuxt/nuxt/issues/14962",0.6889449,{"labels":2902,"number":2907,"owner":2868,"repository":2868,"state":2882,"title":2908,"updated_at":2909,"url":2910,"score":2911},[2903,2904],{"name":2894,"color":2895},{"name":2905,"color":2906},"pending triage","E99695",25203,"How should I add test to my application?","2024-01-14T22:58:03Z","https://github.com/nuxt/nuxt/issues/25203",0.7007381,{"description":2913,"labels":2914,"number":2918,"owner":2868,"repository":2919,"state":2882,"title":2920,"updated_at":2921,"url":2922,"score":2923},"### Environment\n\n- Operating System: Linux\n- Node Version: v22.11.0\n- Nuxt Version: -\n- CLI Version: 3.25.1\n- Nitro Version: -\n- Package Manager: npm@11.1.0\n- Builder: -\n- User Config: -\n- Runtime Modules: -\n- Build Modules: -\n\n### Reproduction\n\n`pnpm create nuxt my-nuxt-project` and select all options\n\n### Describe the bug\n\n ERROR Error while importing module @nuxt/test-utils: Error: Cannot find module 'vitest/config' 9:37:22 AM\nRequire stack:\n- my-nuxt-project/node_modules/.pnpm/@nuxt+test-utils@3.19.0_@types+node@22.15.19_jiti@2.4.2_lightningcss@1.30.1_magicast@0.3.5_te_3u24m677fvme6kharjp6d5jt74/node_modules/@nuxt/test-utils/dist/config.mjs\n\n at loadNuxtModuleInstance (my-nuxt-project/node_modules/.pnpm/@nuxt+kit@3.17.3_magicast@0.3.5/node_modules/@nuxt/kit/dist/index.mjs:2571:15)\n at async installModule (my-nuxt-project/node_modules/.pnpm/@nuxt+kit@3.17.3_magicast@0.3.5/node_modules/@nuxt/kit/dist/index.mjs:2486:67)\n at async initNuxt (my-nuxt-project/node_modules/.pnpm/nuxt@3.17.3_@parcel+watcher@2.5.1_@types+node@22.15.19_better-sqlite3@11.10.0_db0@0.3.2_\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[2915],{"name":2916,"color":2917},"good first issue","7057ff",1303,"test-utils","Adding nuxt/test-utils errors without vitest","2025-05-23T04:45:47Z","https://github.com/nuxt/test-utils/issues/1303",0.70142376,{"description":2925,"labels":2926,"number":2927,"owner":2868,"repository":2919,"state":2882,"title":2928,"updated_at":2929,"url":2930,"score":2931},"link \"See module options\" in https://github.com/nuxt/test-utils not found\r\nlink \"Setup\" in https://test-utils.nuxtjs.org/api-reference/setup not worked",[],286,"page https://test-utils.nuxtjs.org/options not found","2023-12-02T00:28:10Z","https://github.com/nuxt/test-utils/issues/286",0.7021649,{"description":2933,"labels":2934,"number":2935,"owner":2868,"repository":2919,"state":2882,"title":2936,"updated_at":2937,"url":2938,"score":2939},"Trying to get the test-utils to work, but after adding the preset, JEST simply won't run, saying that the test utils cannot be found.\r\n\r\nThis is straight from the docs. I've tried a bunch of different versions, and simply cannot get them to work. This is required (I think) in order to get the global function calls (such as definePageMeta) to work in tests.\r\n\r\n> ● Validation Error:\r\n>\r\n> Preset @nuxt/test-utils not found.\r\n>\r\n> Configuration Documentation:\r\n> https://jestjs.io/docs/configuration.html\r\n\r\nThe test utils are installed.\r\n\r\nAny ideas?",[],280,"Preset @nuxt/test-utils not found.","2023-12-02T00:18:11Z","https://github.com/nuxt/test-utils/issues/280",0.7132764,{"description":2941,"labels":2942,"number":2943,"owner":2868,"repository":2919,"state":2882,"title":2944,"updated_at":2937,"url":2945,"score":2946},"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,"more docs on how to mock test for a page","https://github.com/nuxt/test-utils/issues/265",0.71488667,{"description":2941,"labels":2948,"number":2949,"owner":2868,"repository":2919,"state":2882,"title":2944,"updated_at":2950,"url":2951,"score":2946},[],355,"2023-12-02T00:13:09Z","https://github.com/nuxt/test-utils/issues/355",{"labels":2953,"number":2956,"owner":2868,"repository":2868,"state":2882,"title":2957,"updated_at":2958,"url":2959,"score":2960},[2954,2955],{"name":2905,"color":2906},{"name":2879,"color":2880},7449,"Module not found: Error: Can't resolve - when adding components","2023-01-22T15:36:01Z","https://github.com/nuxt/nuxt/issues/7449",0.7158615,["Reactive",2962],{},["Set"],["ShallowReactive",2965],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fxkXe2bhviDgLseG2iAI6Eulj3GNWSalBHPTXF3jHvk0":-1},"/nuxt/test-utils/312"]