Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Last active Jun 21, 2019
Embed
What would you like to do?
import { mount } from 'testing-hooks/react-dom';
import { type } from 'interactor.js';
import MyInputComponent from './MyInputComponent';
describe('MyInputComponent', () => {
beforeEach(async () => {
await mount(
<MyInputComponent {...props} />
);
});
it('changes the value', async () => {
await type('input', 'Name Namerson').assert.value('Name Namerson')
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment