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
|
public setterCalled: number = 0
|
||||||
}
|
}
|
||||||
window.customElements.define('test-element', TestElement)
|
window.customElements.define('patch-props-test-element', TestElement)
|
||||||
const el = document.createElement('test-element') as TestElement
|
const el = document.createElement('patch-props-test-element') as TestElement
|
||||||
patchProp(el, 'value', null, 'foo')
|
patchProp(el, 'value', null, 'foo')
|
||||||
expect(el.value).toBe('foo')
|
expect(el.value).toBe('foo')
|
||||||
expect(el.setterCalled).toBe(1)
|
expect(el.setterCalled).toBe(1)
|
||||||
|
|
|
@ -42,6 +42,7 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
|
threads: false,
|
||||||
setupFiles: 'scripts/setupVitest.ts',
|
setupFiles: 'scripts/setupVitest.ts',
|
||||||
environmentMatchGlobs: [
|
environmentMatchGlobs: [
|
||||||
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']
|
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']
|
||||||
|
|
Loading…
Reference in New Issue