create-mendix-widget
Version:
Create a working Mendix widget with one command.
13 lines (10 loc) • 361 B
JavaScript
import React from 'react';
import { render } from '@testing-library/preact';
import Counter from '../Counter';
describe('Counter Component', () => {
it('should render correctly', () => {
const props = { dummyKey: 'SOME_DUMMY_KEY' };
const { container } = render(<Counter {...props} />);
expect(container.firstChild).toMatchSnapshot();
});
});