\n \u003Ctemplate #content>\n \u003CUButton label=\"Show toast\" color=\"neutral\" variant=\"outline\" @click=\"showToast\" />\n \u003C/template>\n \u003C/USlideover>\n\n \u003Cbr>\n\n \u003CUModal>\n \u003CUButton label=\"Open Modal\" color=\"neutral\" variant=\"subtle\" />\n \u003Ctemplate #content>\n \u003CUButton label=\"Show toast\" color=\"neutral\" variant=\"outline\" @click=\"showToast\" />\n \u003C/template>\n \u003C/UModal>\n \u003C/div>\n\u003C/template>\n\n\u003Cscript setup lang=\"ts\">\nconst toast = useToast()\n\nfunction showToast() {\n toast.add({\n title: 'Test',\n duration: 60 * 1000\n })\n}\n\u003C/script>\n```\n\n### Description\nFollowing #2404 resolved via b0be26d67feab467ac5862edd82e52df03a5091c\n\nWhile a Slideover or Modal are open trigger a Toaster and try to interact with it.\n\n\nhttps://github.com/user-attachments/assets/945c1f96-7556-42a6-b7e7-f88373b6e38f\n\n",[2091,2092],{"name":2049,"color":2050},{"name":2025,"color":2026},2646,"[v3] Toaster gets rendered behind Slideover's and Modal's overlays","2024-11-15T10:59:18Z","https://github.com/nuxt/ui/issues/2646",0.6983345,{"description":2099,"labels":2100,"number":2103,"owner":1985,"repository":2015,"state":2069,"title":2104,"updated_at":2105,"url":2106,"score":2107},"### Environment\n\n- Operating System: `Darwin`\n- Node Version: `v23.5.0`\n- Nuxt Version: `3.15.4`\n- CLI Version: `3.21.1`\n- Nitro Version: `2.10.4`\n- Package Manager: `npm@10.9.2`\n- Builder: `-`\n- User Config: `colorMode`, `compatibilityDate`, `components`, `devtools`, `eslint`, `nitro`, `buildModules`, `modules`, `runtimeConfig`\n- Runtime Modules: `nitro-cloudflare-dev@0.2.1`, `@pinia/nuxt@0.9.0`, `@nuxt/ui@2.20.0`, `@nuxt/test-utils/module@3.15.4`, `@nuxt/eslint@0.7.5`, `nuxt-auth-utils@0.5.10`\n- Build Modules: `@nuxtjs/date-fns@1.5.0`\n\n\n### Reproduction\n\nhttps://github.com/Mathmagicians/theslope/tree/main\n\n### Describe the bug\n\nI am developing a small community project in Nuxt, it is open source.\nI am trying to add tests for my Nitro endpoints, from the server folder. \nI dont want to mock the endpoints, but actually call them. \nThere is no documentation, that I could finde, how to test the server endpoints. \nI have followed the installatin instructions for nuxt-test-utils\nHere is my `vitest.config.ts`:\n```\nimport {defineVitestConfig} from '@nuxt/test-utils/config'\n\nexport default defineVitestConfig({\n // any custom Vitest config you require\n test: {\n include: ['tests/**/*.*.spec.ts'],\n name: 'nuxt',\n environment: 'nuxt'\n }\n})\n```\n\nHere is the test file:\n```\nimport { fileURLToPath } from 'node:url'\nimport {describe, it, expect} from 'vitest'\nimport { setup, fetch } from '@nuxt/test-utils/e2e'\n//import { $fetchRaw, setup } from 'nitro-test-utils/e2e'\n\nconst doLogin = async (username, password) => {\n return await fetch(`/api/auth/login`, {\n method: 'POST',\n body: {email: username, password: password},\n headers: {ContentType: 'application/json'}\n })\n}\ndescribe('test /auth/login endpoint', async () => {\n await setup({\n setupTimeout: 60*1000,\n server: true,\n browser: false,\n })\n const heyNaboUserName = process.env.HEY_NABO_USERNAME as string; \n const heyNaboPassword = process.env.HEY_NABO_PASSWORD as string;\n\n it('should return a 400 error when no credentials are passed', async () => {\n await expect(doLogin(undefined, undefined))\n .rejects.toThrow('Invalid Heynabo credentials - cant login')\n })\n\n it('should return a 400 error when a wrong body is passed', async () => {\n await expect(\n fetch(`/api/auth/login`, {\n method: 'POST',\n body: {pudu: 'is beautiful'},\n headers: {ContentType: 'application/json'}\n })\n )\n .rejects.toThrow('Invalid Heynabo credentials - cant login')\n })\n\n it('should return a 404 error when incorrect credentials are passed', async () => {\n await expect(doLogin('a@a.dk', 'volapyk'))\n .rejects.toThrow('Invalid Heynabo credentials - cant login')\n })\n\n it('should return user session with a heynabo token when correct credentials are passed', async () => {\n const res = await doLogin(heyNaboUserName, heyNaboPassword)\n expect(res).toHaveProperty('token')\n expect(res.token).not.toBeNull()\n expect(res.token.length).toBeGreaterThan(1)\n expect(res).toHaveProperty('email')\n expect(res.email).toBe(heyNaboUserName)\n })\n})\n\n```\nThe following simple test fails at startup because of the `setup`method:\n```\n FAIL nuxt tests/e2e/login.e2e.spec.ts > test /auth/login endpoint\nTypeError: The URL must be of scheme file\n ❯ Object.renderChunk node_modules/@rollup/plugin-terser/dist/cjs/index.js:160:35\n ❯ node_modules/rollup/dist/es/shared/node-entry.js:20874:40\n```\n\nAny hints at, what might be the issue?\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n-script\nFAIL nuxt tests/e2e/login.e2e.spec.ts > test /auth/login endpoint\nTypeError: The URL must be of scheme file\n ❯ Object.renderChunk node_modules/@rollup/plugin-terser/dist/cjs/index.js:160:35\n ❯ node_modules/rollup/dist/es/shared/node-entry.js:20874:40\n```",[2101],{"name":2078,"color":2102},"5D08F5",1120,"Cant run e2e test that calls a nitro server route - setup fails","2025-02-11T16:59:01Z","https://github.com/nuxt/test-utils/issues/1120",0.70769376,["Reactive",2109],{},["Set"],["ShallowReactive",2112],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"QiXoAUo1ogPxV2W_XKEF46OJc-tw4SMLAM9AVHzmEzQ":-1},"/nuxt/test-utils/587"]