[nuxt][test] Help Needed with tests for a future contribution #205
-
I finished working on the fix for the nuxt module to rename nuxt pages ending in .vine so that nuxt can render them without having to wrap them in a .vue file https://github.com/orgs/vue-vine/discussions/191#discussioncomment-11908154 because the .vine suffix isn't being stripped from the Added module's options export interface VueVineNuxtOptions {
/**
* If `true`, allows registered pages with .vine suffix to be rendered.
* If `false`, hides the .vine registered pages behind an exclusion route.
*
* @default true
*/
pages: boolean
} (the module alias should be Added a nuxt plugin template that auto imports a Now I'm working on the tests. And here is where I need help. I replaced describe('pages enabled', async () => {
await setup({
rootDir: fileURLToPath(new URL('../../playground', import.meta.url)),
})
const page = await createPage('/')
it('renders the index page', () => {
const welcome = page.locator('welcome')
expect(welcome).toBeDefined()
})
Tried adding Will appreciate any help big time, because I want to start contributing to Vine but I'm new to tests and to CI, linting and all this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Nuxt module renaming is an incompatible change, maybe it should be released as 0.3.0. ( About tests, you can create a wip pr and we can debug it together. |
Beta Was this translation helpful? Give feedback.
#211
Done? 😳