Skip to content

Commit

Permalink
Test: BitBakeProjectScanner retrieves a valid bitbake version
Browse files Browse the repository at this point in the history
  • Loading branch information
deribaucourt committed Jan 10, 2025
1 parent c04d6f0 commit 1fa3f2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/__tests__/unit-tests/driver/scanner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fa3f2e

Please sign in to comment.