\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,"icon","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.72674394,{"description":2004,"labels":2005,"number":2010,"owner":1988,"repository":1988,"state":2011,"title":2012,"updated_at":2013,"url":2014,"score":2015},"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",[2006,2007],{"name":1985,"color":1986},{"name":2008,"color":2009},"3.x","29bc7f",14962,"closed","[Docs] Move modules testing section","2023-04-20T13:10:13Z","https://github.com/nuxt/nuxt/issues/14962",0.68314594,{"description":2017,"labels":2018,"number":2019,"owner":1988,"repository":2020,"state":2011,"title":2021,"updated_at":2022,"url":2023,"score":2024},"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,"test-utils","page https://test-utils.nuxtjs.org/options not found","2023-12-02T00:28:10Z","https://github.com/nuxt/test-utils/issues/286",0.6932275,{"description":2026,"labels":2027,"number":2031,"owner":1988,"repository":1988,"state":2011,"title":2032,"updated_at":2033,"url":2034,"score":2035},"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>",[2028],{"name":2029,"color":2030},"2.x","d4c5f9",3013,"Testing module","2023-01-18T16:09:51Z","https://github.com/nuxt/nuxt/issues/3013",0.70238596,{"description":2037,"labels":2038,"number":2039,"owner":1988,"repository":2020,"state":2011,"title":2040,"updated_at":2041,"url":2042,"score":2043},"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","2023-12-02T00:18:11Z","https://github.com/nuxt/test-utils/issues/265",0.7050883,{"description":2037,"labels":2045,"number":2046,"owner":1988,"repository":2020,"state":2011,"title":2040,"updated_at":2047,"url":2048,"score":2043},[],355,"2023-12-02T00:13:09Z","https://github.com/nuxt/test-utils/issues/355",{"labels":2050,"number":2055,"owner":1988,"repository":1988,"state":2011,"title":2056,"updated_at":2057,"url":2058,"score":2059},[2051,2052],{"name":2008,"color":2009},{"name":2053,"color":2054},"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.7118598,{"description":2061,"labels":2062,"number":2068,"owner":1988,"repository":1988,"state":2011,"title":2069,"updated_at":2070,"url":2071,"score":2072},"### Environment\n\n- Operating System: Linux\r\n- Node Version: v18.18.0\r\n- Nuxt Version: 3.11.2\r\n- CLI Version: 3.11.1\r\n- Nitro Version: 2.9.6\r\n- Package Manager: npm@10.2.3\r\n- Builder: -\r\n- User Config: devtools, modules\r\n- Runtime Modules: @nuxt/test-utils/module@3.12.1\r\n- Build Modules: -\n\n### Reproduction\n\nhttps://stackblitz.com/edit/github-aygvkp?file=components%2Fcomponent.nuxt.test.ts\r\n\r\nOpen the stackblitz and notice that the editor complains:\r\n\r\n```\r\nCannot find name 'SomeComponent'. Did you mean 'component'?(2552)\r\ncomponent.nuxt.test.ts(10, 9): 'component' is declared here.\r\n```\r\n\r\nRun the test suite and notice that the tests fail with:\r\n\r\n```\r\nReferenceError: SomeComponent is not defined\r\n```\n\n### Describe the bug\n\nI have followed the instructions on https://nuxt.com/docs/getting-started/testing and the way I read [this section](https://nuxt.com/docs/getting-started/testing#%EF%B8%8F-helpers) `SomeComponent` should be auto-imported into that test.\r\n\r\nThe test suite runs successfully and all tests pass if I uncomment the SomeComponent import on line 4 but according to the example in the doc, that isn't necessary. Also, when I uncomment line 4, I get the following error:\r\n\r\n```\r\nCannot find module './SomeComponent' or its corresponding type declarations.(2307)\r\n```\r\n\r\nCompare this to a similar import in `SomeWrapperComponent.vue` which does not cause the error.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n_No response_",[2063,2064,2067],{"name":1985,"color":1986},{"name":2065,"color":2066},"good first issue","fbca04",{"name":2008,"color":2009},27120,"docs: improve testing component example to avoid auto import misunderstanding","2024-05-11T09:00:34Z","https://github.com/nuxt/nuxt/issues/27120",0.7149743,{"description":2074,"labels":2075,"number":2081,"owner":1988,"repository":2020,"state":2011,"title":2082,"updated_at":2083,"url":2084,"score":2085},"Hi,\r\n\r\nI'm trying to use test-utils for a Nuxt project, I managed to test that my plugin was injected using the [example code from the documentation](https://test-utils.nuxtjs.org/examples/module), but then I'm stuck because the documentation doesn't explain anything else.\r\n\r\n**How can I access the Nuxt context from my test?** \r\n\r\nFor example, if a plugin injects a function with `inject('myPlugin', myPluginFunction)`, how do I access `this.$myPlugin` from a test?\r\n\r\nThanks a lot",[2076,2078],{"name":1985,"color":2077},"0075ca",{"name":2079,"color":2080},"v0","4137F6",313,"Add examples in \"Nuxt module\" documentation","2024-05-01T16:04:43Z","https://github.com/nuxt/test-utils/issues/313",0.7177786,["Reactive",2087],{},["Set"],["ShallowReactive",2090],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"xkXe2bhviDgLseG2iAI6Eulj3GNWSalBHPTXF3jHvk0":-1},"/nuxt/test-utils/312"]