]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: disable threads during tests
authorEvan You <yyx990803@gmail.com>
Thu, 2 Feb 2023 14:08:37 +0000 (22:08 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 2 Feb 2023 14:08:37 +0000 (22:08 +0800)
packages/runtime-dom/__tests__/patchProps.spec.ts
vitest.config.ts

index 56d2eb5d56c6fc60f0742099efc88f76f3ca4bb4..c49de1a155da236faf9c170abdc76d26b7141bcf 100644 (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)
index 95c1c61a34c4b01d4b98fc458672dec63d5727c9..9146ec353c9181b512bdc84ba7bd19564b5aa231 100644 (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']