Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify if args passed with --file exists and if not show a message #4972

Closed
wants to merge 1 commit into from

Conversation

dennxa
Copy link

@dennxa dennxa commented Mar 9, 2023

Description of the Change

getting the list of files in the current directory I iterate through each file and check if it exists or not.
If a file does exist, it prints out "File exists" and if not, it prints out "Cannot find test file".

Applicable issues

Closes #4047

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 9, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: dennxa / name: Denia Lomas (3f80470)

return file;
});

console.log(result);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, You must get rid of the console.log and update the PR

@github-actions
Copy link
Contributor

This PR hasn't had any recent activity, and I'm labeling it stale. Remove the label or comment or this PR will be closed in 14 days. Thanks for contributing to Mocha!

@github-actions github-actions bot added the stale this has been inactive for a while... label Sep 11, 2023
@github-actions github-actions bot closed this Sep 25, 2023
@JoshuaKGoldberg
Copy link
Member

👋 coming back to this @dennxa, are you still interested in working on this PR? As of #5027 there are maintainers who can review it now. No worries if you no longer have time - but if you do that'd be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale this has been inactive for a while...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Better error for --file option with non-existent file
3 participants