test-utils icon indicating copy to clipboard operation
test-utils copied to clipboard

nuxt/components is not work in setupTest

Open mhfeizi opened this issue 4 years ago • 3 comments

nuxt/components is not work in setupTest:

setupTest({
    config: {
      components: true  // <-- not work
    }
  });

mhfeizi avatar Aug 12 '21 18:08 mhfeizi

@mhfeizi Could you provide minimal reproduction repo, please? It would be easier to help seeing what you are trying to test.

mrazauskas avatar Aug 13 '21 04:08 mrazauskas

@mhfeizi Could you provide minimal reproduction repo, please? It would be easier to help seeing what you are trying to test.

https://github.com/mhfeizi/nuxt-components-issue-158

mhfeizi avatar Aug 14 '21 08:08 mhfeizi

@mhfeizi Thanks!

I had a look and it seems like this is recent regression in Components module (follow nuxt/components#223). All works as expected if @nuxt/components is pinned to version 2.1.8:

"resolutions": {
  "@nuxt/components": "2.1.8"
}

mrazauskas avatar Aug 14 '21 08:08 mrazauskas