Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions tests/providers/maestro.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading