diff --git a/client/src/lib/src/__tests__/driver/bitbake-settings.test.ts b/client/src/lib/src/__tests__/driver/bitbake-settings.test.ts index 14cd11db..fbac64c0 100644 --- a/client/src/lib/src/__tests__/driver/bitbake-settings.test.ts +++ b/client/src/lib/src/__tests__/driver/bitbake-settings.test.ts @@ -3,6 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. * ------------------------------------------------------------------------------------------ */ +import path from 'path' import { loadBitbakeSettings } from '../../BitbakeSettings' describe('BitbakeSettings Tests', () => { @@ -19,4 +20,14 @@ describe('BitbakeSettings Tests', () => { }, '/home/user/workspace') expect(settings.pathToBuildFolder).toEqual('/home/user/workspace/build') }) + + it('should expand relative paths', () => { + const settings = loadBitbakeSettings({ + pathToBitbakeFolder: '', + pathToEnvScript: '', + // eslint-disable-next-line no-template-curly-in-string + pathToBuildFolder: './build' + }, __dirname) + expect(settings.pathToBuildFolder).toEqual(path.join(__dirname, '/build')) + }) })