We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5becc03 commit 4e732aeCopy full SHA for 4e732ae
1 file changed
packages/platform-ios/src/__tests__/xctest-agent.test.ts
@@ -105,10 +105,16 @@ const createLongRunningSubprocess = (options?: {
105
106
const iterable = {
107
nodeChildProcess: Promise.resolve(childProcess),
108
- async *[Symbol.asyncIterator]() {
109
- while (!stopped) {
110
- await new Promise((resolve) => setTimeout(resolve, 0));
111
- }
+ [Symbol.asyncIterator]() {
+ return {
+ next: async () => {
+ while (!stopped) {
112
+ await new Promise((resolve) => setTimeout(resolve, 0));
113
+ }
114
+
115
+ return { done: true, value: undefined };
116
+ },
117
+ };
118
},
119
};
120
0 commit comments