ægteemil
ægteemil
Explore posts from servers
NNuxt
Created by ægteemil on 11/22/2024 in #❓・help
Testing with i18n and vitest
if this doesn't work, let me know and i can look for what else i did to fix it
10 replies
NNuxt
Created by ægteemil on 11/22/2024 in #❓・help
Testing with i18n and vitest
so i have a tests/setup.ts file with this content:
import { mockNuxtImport } from '@nuxt/test-utils/runtime';

mockNuxtImport('useI18n', () => () => useNuxtApp().$i18n);
import { mockNuxtImport } from '@nuxt/test-utils/runtime';

mockNuxtImport('useI18n', () => () => useNuxtApp().$i18n);
10 replies
NNuxt
Created by ægteemil on 11/22/2024 in #❓・help
Testing with i18n and vitest
yeah i did, although honestly i've forgotten if it was just this one line in a test-setup file: mockNuxtImport('useI18n', () => () => useNuxtApp().$i18n);
10 replies
CC#
Created by ægteemil on 7/17/2024 in #help
✅ Describing `object` response in swagger
Ahhh, I'll give that a go. Thanks!
14 replies
CC#
Created by ægteemil on 7/13/2024 in #help
✅ Apply multiple attributes from custom attribute
Sorry, I didn't see oyur message until now. Seems it got closed for me. Thanks!
12 replies
NNuxt
Created by ægteemil on 7/12/2024 in #❓・help
Route guards for user permissions
Thanks! This is what I was looking for, but on second though I think it might be prettier with my own solution, since I'd have to place the page meta-data on all sub-pages as well, right?
5 replies
NNuxt
Created by ægteemil on 6/12/2024 in #❓・help
Centered grid with different-sized children
2 replies