We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a271b2 commit d2e9cbaCopy full SHA for d2e9cba
packages/compass-user-data/src/user-data.spec.ts
@@ -158,6 +158,20 @@ describe('user-data', function () {
158
expect(mongoshData?.[1]).to.be.instanceOf(Stats);
159
}
160
});
161
+
162
+ it('reads many number of files', async function () {
163
+ const files = Array.from({ length: 10000 }, (_, i) => [
164
+ `data${i}.json`,
165
+ JSON.stringify({ name: `VSCode${i}` }),
166
+ ]);
167
168
+ await Promise.all(
169
+ files.map(([filepath, data]) => writeFileToStorage(filepath, data))
170
+ );
171
172
+ const result = await getUserData().readAll();
173
+ expect(result.data).to.have.lengthOf(10000);
174
+ });
175
176
177
context('UserData.readOne', function () {
0 commit comments