accessible-autocomplete
accessible-autocomplete copied to clipboard
Migrate functional tests to Jest
Timer mocks would be useful for fixing some of our tests.
Should be combined with https://github.com/alphagov/accessible-typeahead/issues/54?
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 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.