@motiadev/test 0.1.0-beta → 0.1.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,7 @@ const createEventManager = () => {
|
|
|
10
10
|
// and we need to ensure that all events have been processed before we can continue
|
|
11
11
|
while (eventsToAwait.length > 0) {
|
|
12
12
|
events.splice(0, eventsToAwait.length);
|
|
13
|
-
await Promise.allSettled(eventsToAwait);
|
|
13
|
+
await Promise.race([Promise.allSettled(eventsToAwait), new Promise((resolve) => setTimeout(resolve, 2000))]);
|
|
14
14
|
eventsToAwait = [...events];
|
|
15
15
|
}
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motiadev/test",
|
|
3
3
|
"description": "A testing utility package for Motia workflows that provides tools for mocking, testing, and simulating Motia components.",
|
|
4
|
-
"version": "0.1.0-beta",
|
|
4
|
+
"version": "0.1.0-beta.11",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@motiadev/core": "0.1.0-beta",
|
|
9
|
-
"motia": "0.1.0-beta"
|
|
8
|
+
"@motiadev/core": "0.1.0-beta.11",
|
|
9
|
+
"motia": "0.1.0-beta.11"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"supertest": "^7.0.0",
|