From 1fa3f2e4a69df52618daf3a99d52c17a6ce87866 Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Thu, 9 Jan 2025 09:49:04 +0100 Subject: [PATCH] Test: BitBakeProjectScanner retrieves a valid bitbake version --- client/src/__tests__/unit-tests/driver/scanner.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/__tests__/unit-tests/driver/scanner.test.ts b/client/src/__tests__/unit-tests/driver/scanner.test.ts index 3b8f9ae0..dde4f38b 100644 --- a/client/src/__tests__/unit-tests/driver/scanner.test.ts +++ b/client/src/__tests__/unit-tests/driver/scanner.test.ts @@ -73,6 +73,11 @@ describe('BitBakeProjectScanner', () => { jest.clearAllMocks() }, BITBAKE_TIMEOUT) + it('can get the bitbake version', async () => { + const version = bitBakeProjectScanner.scanResult._bitbakeVersion + expect(version).toMatch(/^[\d.]+$/); + }) + it('can get a list of layers', async () => { const layers = bitBakeProjectScanner.scanResult._layers // poky provides the "core", "yocto" and "yoctobsp" layers