Merge pull request #21140 from backstage/freben/arrays-again

🧹 another race condition fix
This commit is contained in:
Fredrik Adelöw
2023-11-09 10:10:13 +01:00
committed by GitHub
@@ -508,8 +508,9 @@ describe('helpers', () => {
await createOrUpdateMetadata(filePath, mockLogger);
const json = await fs.readJson(filePath);
expect(json.files[0]).toEqual(Object.keys(mockFiles)[0]);
expect(json.files[1]).toEqual(Object.keys(mockFiles)[1]);
expect(json.files).toEqual(
expect.arrayContaining(Object.keys(mockFiles)),
);
});
});