Skip to content

Commit ed6e32d

Browse files
fix failing tests
1 parent 2a4cdec commit ed6e32d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/providers/xcuitest.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import XCUITest, { XCUITestSocketMessage } from '../../src/providers/xcuitest';
22
import XCUITestOptions from '../../src/models/xcuitest_options';
33
import TestingBotError from '../../src/models/testingbot_error';
44
import fs from 'node:fs';
5+
import path from 'node:path';
56
import axios from 'axios';
67
import { Readable } from 'node:stream';
78
import Credentials from '../../src/models/credentials';
@@ -1289,7 +1290,7 @@ describe('XCUITest', () => {
12891290
}),
12901291
);
12911292
expect(fs.promises.writeFile).toHaveBeenCalledWith(
1292-
'/tmp/reports/xcuitest_report_2464_2509.xml',
1293+
path.join('/tmp/reports', 'xcuitest_report_2464_2509.xml'),
12931294
'<testsuites/>',
12941295
'utf-8',
12951296
);
@@ -1316,7 +1317,7 @@ describe('XCUITest', () => {
13161317
expect.anything(),
13171318
);
13181319
expect(fs.promises.writeFile).toHaveBeenCalledWith(
1319-
'/tmp/reports/xcuitest_report_2464_2509.html',
1320+
path.join('/tmp/reports', 'xcuitest_report_2464_2509.html'),
13201321
'<html></html>',
13211322
'utf-8',
13221323
);

0 commit comments

Comments
 (0)