workflow: disable threads during tests

This commit is contained in:
Evan You 2023-02-02 22:08:37 +08:00
parent 1487d81160
commit e077e6f5f3
2 changed files with 3 additions and 2 deletions

View File

@ -45,8 +45,8 @@ describe('runtime-dom: props patching', () => {
public setterCalled: number = 0
}
window.customElements.define('test-element', TestElement)
const el = document.createElement('test-element') as TestElement
window.customElements.define('patch-props-test-element', TestElement)
const el = document.createElement('patch-props-test-element') as TestElement
patchProp(el, 'value', null, 'foo')
expect(el.value).toBe('foo')
expect(el.setterCalled).toBe(1)

View File

@ -42,6 +42,7 @@ export default defineConfig({
},
test: {
globals: true,
threads: false,
setupFiles: 'scripts/setupVitest.ts',
environmentMatchGlobs: [
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']