Hello,
While I am trying to test custom input component that I render as part of custom question output. I am getting an error in such test case
TypeError: Cannot set properties of undefined (setting 'renderCallback')
Are there any instructions of how to test it or how to create a Survey as a creator correctly?
JavaScriptimport { Survey } from 'survey-react-ui';
test('renders component as an input inside survey form', () => {
renderComponent({
creator: new Survey({}),
});
expect(screen.getByTestId('input')).toBeInTheDocument();
});
Best regards,
Yaroslav