accessible-autocomplete icon indicating copy to clipboard operation
accessible-autocomplete copied to clipboard

Migrate functional tests to Jest

Open tvararu opened this issue 7 years ago • 2 comments

Timer mocks would be useful for fixing some of our tests.

Should be combined with https://github.com/alphagov/accessible-typeahead/issues/54?

tvararu avatar May 09 '17 14:05 tvararu

If you're having timer issues then another option is sinon which might be a bit easier to implement than migrating to a whole different test-runner.

lennym avatar May 15 '17 13:05 lennym

@lennym We do have sinon, but I wasn't aware of that feature. That's another option, thanks!

I'd still like to give Jest a try, as it uses much of the same API as Karma + Mocha (I've read about people dropping it in as a replacement without any code changes) so in theory there shouldn't be much to migrate.

It also has the added advantage of allowing us to replace 10+ dev dependencies with just one.

tvararu avatar May 15 '17 13:05 tvararu