Pause tests in Ember

May 29, 2018
ember, tech, testing, tip
Every now and then you want to pause a test so you can investigate the state of the world around it.

Simply await on a promise which resolves after a timeout.

1
2
3
4
5
test("my test", async function(assert) {
  // setup…
  await new Promise(resolve => setTimeout(resolve, 30000));
  // …assert
});
comments powered by Disqus