diff --git a/plugins/techdocs-node/src/stages/generate/helpers.test.ts b/plugins/techdocs-node/src/stages/generate/helpers.test.ts index 738bb6fc46..24d9b3effb 100644 --- a/plugins/techdocs-node/src/stages/generate/helpers.test.ts +++ b/plugins/techdocs-node/src/stages/generate/helpers.test.ts @@ -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)), + ); }); });