\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,"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.6607846,{"labels":2004,"number":2011,"owner":1988,"repository":1988,"state":2012,"title":2013,"updated_at":2014,"url":2015,"score":2016},[2005,2008],{"name":2006,"color":2007},"pending triage","E99695",{"name":2009,"color":2010},"2.x","d4c5f9",6852,"closed","Compatibility issue with Nuxt@2.11 and @vue/test-utils","2023-01-22T15:34:48Z","https://github.com/nuxt/nuxt/issues/6852",0.62650985,{"description":2018,"labels":2019,"number":2020,"owner":1988,"repository":2021,"state":2012,"title":2022,"updated_at":2023,"url":2024,"score":2025},"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,"test-utils","Preset @nuxt/test-utils not found.","2023-12-02T00:18:11Z","https://github.com/nuxt/test-utils/issues/280",0.62812585,{"description":2027,"labels":2028,"number":2033,"owner":1988,"repository":1988,"state":2012,"title":2034,"updated_at":2035,"url":2036,"score":2037},"### What problem does this feature solve?\n\nI cannot find a working solution that let's me use ava or jest to run unit tests that utilize the Vue Test Utils library. Given that both Vue Test Utils and Nuxt appear to hold strong positions within the Vue community, I think it makes sense to ensure that Vue Test Utils can be utilized for both Nuxt universal and Nuxt SPAs\n\n### What does the proposed changes look like?\n\nNuxt should seamlessly let developers run tests with runners like jest or ava while using Vue-test-utils as well as modern ES features (import statements). Importing .vue SFCs from your test files would work fine, using the import statement would work fine, and utilizing Vue Test Util features like shallowMount would work fine.\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/c7972\">#c7972\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[2029,2032],{"name":2030,"color":2031},"enhancement","8DEF37",{"name":2009,"color":2010},4115,"Enable Vue-Test-Utils to work with Nuxt","2023-01-22T15:50:48Z","https://github.com/nuxt/nuxt/issues/4115",0.6333999,{"description":2039,"labels":2040,"number":2041,"owner":1988,"repository":2021,"state":2012,"title":2042,"updated_at":2043,"url":2044,"score":2045},"### 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_",[],347,"Using `@nuxt/test-utils` with `jest` results in `Returning a Promise from \"describe\" is not supported`","2023-12-02T00:23:10Z","https://github.com/nuxt/test-utils/issues/347",0.6479067,{"description":2047,"labels":2048,"number":2049,"owner":1988,"repository":2021,"state":2012,"title":2050,"updated_at":2051,"url":2052,"score":2053},"After I followed instruction to install @nuxt/test-utils, the preset is not found in jest. Here is a minimal reproduction.\r\n\r\nhttps://stackblitz.com/edit/nuxt-starter-mzh22b?file=package.json,jest.config.js,test%2Fexample.spec.js,README.md\r\n\r\npackage.json\r\n```\r\n{\r\n \"private\": true,\r\n \"scripts\": {\r\n \"build\": \"nuxt build\",\r\n \"dev\": \"HOST=0.0.0.0 nuxt dev\",\r\n \"generate\": \"nuxt generate\",\r\n \"preview\": \"nuxt preview\",\r\n \"postinstall\": \"nuxt prepare\",\r\n \"test\": \"jest\"\r\n },\r\n \"devDependencies\": {\r\n \"@nuxt/test-utils\": \"^3.4.2\",\r\n \"@types/node\": \"^18\",\r\n \"jest\": \"^28.1.3\",\r\n \"nuxt\": \"^3.4.2\"\r\n }\r\n}\r\n```\r\n\r\njest.config.js\r\n```\r\nmodule.exports = {\r\n preset: '@nuxt/test-utils',\r\n};\r\n```\r\n\r\nNot sure what happened here",[],400,"Preset @nuxt/test-utils not found with jest@28","2023-12-02T00:13:09Z","https://github.com/nuxt/test-utils/issues/400",0.6514412,{"description":2055,"labels":2056,"number":1987,"owner":1988,"repository":2021,"state":2012,"title":2057,"updated_at":2023,"url":2058,"score":1994},"It would be really good to know why using `@nuxt/test-utils` is more beneficial than using `@vue/test-utils` in a Nuxt project. Despite the obvious point being this package is made specifically for Nuxt, `@vue/test-utils` still works perfectly well in Nuxt projects.\r\n\r\nCould we get some comparison docs (a table maybe) of what `@vue/test-utils` can't do for a Nuxt project, but `@nuxt/test-utils` can?",[],"@nuxt/test-utils vs @vue/test-utils?","https://github.com/nuxt/test-utils/issues/298",{"description":2060,"labels":2061,"number":2062,"owner":1988,"repository":2021,"state":2012,"title":2063,"updated_at":2064,"url":2065,"score":2066},"Hello everyone,\r\n\r\nI have a few questions about Nuxt test-utils.\r\n\r\nMy situation:\r\n\r\n- I have a Vue.js project with Vue test-utils;\r\n- I have a Nuxt.js project where I would like to add testing;\r\n\r\nI'm looking into different options for libraries to test my Nuxt.js project. Ideally, I would like to have something very similar to Vue test-utils, in order to avoid headaches when working on both projects. Nuxt test-utils seems like an interesting option, but I was wondering what are its advantages compared to just using Vue test-utils? Thanks!",[],296,"Question: Vue test-utils vs Nuxt test-utils","2023-12-02T00:23:09Z","https://github.com/nuxt/test-utils/issues/296",0.6575402,{"description":2060,"labels":2068,"number":2069,"owner":1988,"repository":2021,"state":2012,"title":2063,"updated_at":2051,"url":2070,"score":2066},[],370,"https://github.com/nuxt/test-utils/issues/370",["Reactive",2072],{},["Set"],["ShallowReactive",2075],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"ehpwqEUKbfLRktOpOgwa-1b6bQ0qyWYA9T76VYFDWFo":-1},"/nuxt/test-utils/327"]