diff --git a/package-lock.json b/package-lock.json index 2881242..b4d0e1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@testingbot/cli", - "version": "1.1.1", + "version": "1.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@testingbot/cli", - "version": "1.1.1", + "version": "1.2.0", "license": "MIT", "dependencies": { "archiver": "^7.0.1", diff --git a/package.json b/package.json index a173049..cb29dd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@testingbot/cli", - "version": "1.1.1", + "version": "1.2.0", "description": "CLI tool to run Espresso, XCUITest and Maestro tests on TestingBot's cloud infrastructure", "main": "dist/index.js", "bin": { diff --git a/tests/providers/maestro.test.ts b/tests/providers/maestro.test.ts index ef26b48..191c128 100644 --- a/tests/providers/maestro.test.ts +++ b/tests/providers/maestro.test.ts @@ -7227,9 +7227,11 @@ onFlowStart: }); it('drops exact files and everything under a directory', async () => { + // Compare on the basename: the provider resolves paths with the OS + // separator, so a '/wip' suffix check breaks on Windows. fs.promises.stat = jest.fn().mockImplementation(async (p: string) => ({ - isDirectory: () => String(p).endsWith('/wip'), - isFile: () => !String(p).endsWith('/wip'), + isDirectory: () => path.basename(String(p)) === 'wip', + isFile: () => path.basename(String(p)) !== 'wip', })); const m = withExclusions(['/proj/flows/login.yaml', '/proj/flows/wip']); const list = files();