Skip to content

Commit e077e6f

Browse files
committed
workflow: disable threads during tests
1 parent 1487d81 commit e077e6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/runtime-dom/__tests__/patchProps.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('runtime-dom: props patching', () => {
4545

4646
public setterCalled: number = 0
4747
}
48-
window.customElements.define('test-element', TestElement)
49-
const el = document.createElement('test-element') as TestElement
48+
window.customElements.define('patch-props-test-element', TestElement)
49+
const el = document.createElement('patch-props-test-element') as TestElement
5050
patchProp(el, 'value', null, 'foo')
5151
expect(el.value).toBe('foo')
5252
expect(el.setterCalled).toBe(1)

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default defineConfig({
4242
},
4343
test: {
4444
globals: true,
45+
threads: false,
4546
setupFiles: 'scripts/setupVitest.ts',
4647
environmentMatchGlobs: [
4748
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']

0 commit comments

Comments
 (0)