From cb4b487a9edd5bb16b405df33d87b7d1ee7c1039 Mon Sep 17 00:00:00 2001 From: Danielku15 Date: Sun, 19 Jan 2025 19:44:48 +0100 Subject: [PATCH] test: await promises for file scan --- src/test/integration/config-file-change.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/integration/config-file-change.test.ts b/src/test/integration/config-file-change.test.ts index 6b62ca1..fcfde0b 100644 --- a/src/test/integration/config-file-change.test.ts +++ b/src/test/integration/config-file-change.test.ts @@ -61,7 +61,7 @@ describe('config-file-change', () => { // scan and test results expect(c).to.not.be.undefined; - c!.scanFiles(); + await c!.scanFiles(); expectTestTree(c!, [ ['folder', [['nested.test.js', [['is nested']]]]], ['hello.test.js', [['math', [['addition'], ['subtraction']]]]], @@ -100,7 +100,7 @@ describe('config-file-change', () => { // scan and test results expect(c).to.not.be.undefined; - c!.scanFiles(); + await c!.scanFiles(); expectTestTree(c!, [['hello.test.js', [['math', [['addition'], ['subtraction']]]]]]); }); });