happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

jsdom -> happy-dom migration with vitest is not simple

Open VividLemon opened this issue 2 years ago • 0 comments

Kind of a question for help, I'm trying to use happy-dom instead of jsdom using vitest, it should be as simple as changing the vitest environment setting. However, when I switch over, it comes with many issues. Such line as,

    await $radios[0].trigger('click')
    expect(wrapper.vm.modelValue).toEqual('one')

Which worked fine before, doesn't seem to do anything.

I also get weird fails saying value.trim is not a function on vue-test-utils...

const wrapper = mount(FormSelectOptionGroup, {` 

Component mounting function.

Also, on some other mounting functions, some will fill with TypeError: Cannot set properties of undefined (setting 'hasOwnProperty'), while others in the same file seemingly have no issues.

Any help would be appreciated. Here's the repo, if anyone wants to take a deeper look and help me figure out what I'm doing wrong. https://github.com/cdmoro/bootstrap-vue-3/tree/main/packages/bootstrap-vue-3

VividLemon avatar Aug 17 '22 16:08 VividLemon