Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Last active June 21, 2019 04:40
Show Gist options
  • Save Robdel12/1270203aa9176987bcf56da9e73a84a2 to your computer and use it in GitHub Desktop.
Save Robdel12/1270203aa9176987bcf56da9e73a84a2 to your computer and use it in GitHub Desktop.
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