Pause tests in Ember

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.

test("my test", async function(assert) {
  // setup…
  await new Promise(resolve => setTimeout(resolve, 30000));
  // …assert
});
May 29, 2018 ember, testing, tip, tech
comments powered by Disqus