Skip to content

Commit

Permalink
feat(util-dev): add flushPromises util
Browse files Browse the repository at this point in the history
  • Loading branch information
mkazlauskas committed Oct 12, 2021
1 parent 5bb937e commit 19eb508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/util-dev/src/index.ts
@@ -1,3 +1,4 @@
export * as AssetId from './assetId';
export * as CslTestUtil from './cslTestUtil';
export * as SelectionConstraints from './selectionConstraints';
export * from './util';
2 changes: 2 additions & 0 deletions packages/util-dev/src/util.ts
@@ -0,0 +1,2 @@
export const flushPromises = (setImmediate = global.setImmediate) =>
new Promise((resolve) => setImmediate(resolve, void 0));

0 comments on commit 19eb508

Please sign in to comment.