Skip to content

fix: cleaner user facing error handing and tests for config file points of failure - #620

Open
lwasser wants to merge 3 commits into
all-contributors:mainfrom
lwasser:readme-failures
Open

lwasser wants to merge 3 commits into
all-contributors:mainfrom
lwasser:readme-failures

Conversation

@lwasser

@lwasser lwasser commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

This PR adds e2e tests for points of failure when config files like the json file don't exist. here we raise a UserError and make the unit tests associated with it a bit more explicit too. this pr is built on #616 #617 .

@lwasser
lwasser force-pushed the readme-failures branch 3 times, most recently from 24be881 to 02dfe31 Compare November 11, 2026 01:48
@lwasser
lwasser marked this pull request as ready for review November 11, 2026 02:51
@lwasser
lwasser requested a review from a team November 11, 2026 02:55
@lwasser lwasser added the type: tests Changes to tests label Nov 11, 2026
@lwasser

lwasser commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

This is ready for review! Here I focused on various errors a user may encounter running initial commands so it looks at things like malformed json, bad config, missing readme, etc etc. i also added some friendlier messaging around errors and checked those in our tests too. I think the next round of tests will be related to mocking. i haven't been tracking these with issues but I will start doing that now.

Comment thread .github/workflows/test-deploy.yml Resolved
@michaelfaith

Copy link
Copy Markdown
Contributor

This will need to be rebased, following the re-organization of ci jobs.

@lwasser

lwasser commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

@michaelfaith rebase is complete! thanks!

@lwasser lwasser changed the title test: add tests for config file points of failure fix: cleaner user facing error handing and tests for config file points of failure Nov 11, 2026
test: add await so error reach CLI error handler and throw proper returns

chore: lint

ci: add e2e to ci

test: add test and cleaner message for when json file is missing

test: cleanup unit test to check for UserError and match message

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: tests Changes to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants