mirror of https://github.com/vuejs/core.git
workflow: disable threads during tests
This commit is contained in:
parent
1487d81160
commit
e077e6f5f3
|
@ -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)
|
||||
|
|
|
@ -42,6 +42,7 @@ export default defineConfig({
|
|||
},
|
||||
test: {
|
||||
globals: true,
|
||||
threads: false,
|
||||
setupFiles: 'scripts/setupVitest.ts',
|
||||
environmentMatchGlobs: [
|
||||
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']
|
||||
|
|
Loading…
Reference in New Issue