Skip to content

Commit

Permalink
Test: provide a valid working directory for the eSDK driver Tests
Browse files Browse the repository at this point in the history
Sanity tests now require a valid working directory to be provided.
  • Loading branch information
deribaucourt committed Aug 19, 2024
1 parent ccc7d32 commit 9f67748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/__tests__/unit-tests/driver/eSDKMode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ describe('Devtool eSDK Mode Test Suite', () => {
const bitbakeDriver = new BitbakeDriver()
const bitbakeSettings: BitbakeSettings = {
pathToBitbakeFolder: __dirname,
workingDirectory: '/path/to/workspace',
workingDirectory: __dirname,
commandWrapper: '',
pathToEnvScript: 'fakeEnvScript',
pathToBuildFolder: 'nonexistent'
}
bitbakeDriver.loadSettings(bitbakeSettings, '/path/to/workspace')
bitbakeDriver.loadSettings(bitbakeSettings, __dirname)
const bitbakeTerminalSpy = jest.spyOn(BitbakeTerminal, 'runBitbakeTerminalCustomCommand').mockImplementation(async () => undefined as any)
const bitbakeExecutionSpy = jest.spyOn(ProcessUtils, 'finishProcessExecution')
clientNotificationManager.showBitbakeSettingsError = jest.fn()
Expand Down

0 comments on commit 9f67748

Please sign in to comment.