import { waitFor } from '@testing-library/react'; import React from 'react'; import { runInDom } from '../../__test_dependency__/run-in-dom.js'; import { useBinding } from '../../binding/use-binding.js'; import { makeBindableComponent } from '../make-bindable-component.js'; describe('makeBindableComponent', () => { it('should work', () => runInDom(({ onMount }) => { const MyComponent = makeBindableComponent(({ value }: { value: string }) => {value}); const two = useBinding(() => 'two', { id: 'two', detectChanges: true }); onMount(async (rootElement) => { expect(rootElement.innerHTML).toBe('