emberjs / ember-test-waiters

An Ember addon to allow @ember/test-helpers to manage asynchronous operations
MIT License
29 stars 15 forks source link

`waiter.nextToken` needs to be added to the production Noop waiter #462

Open runspired opened 10 months ago

runspired commented 10 months ago

the only way to pass a label to beginAsync is to also pass a token yourself, meaning:

waiter.beginAsync(waiter.nextToken(), myLabel)

in production builds this will throw because the no-op waiter does not stub this function

NullVoxPopuli commented 9 months ago

any chance you'd be willing to add a separate test app here: https://github.com/emberjs/ember-test-waiters/tree/master/test-apps

that tests and asserts production behavior?