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

Don't fail silently when config not found #471

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kkmuffme
Copy link

Fix #467

@RyanZim
Copy link
Collaborator

RyanZim commented Jan 16, 2024

Needs tests. Also should probably add an explanatory code comment, as it's a bit non-obvious what we're doing here.

@kkmuffme kkmuffme force-pushed the throw-error-when-config-path-is-passed branch from 94eab51 to 7f1725b Compare January 17, 2024 11:51
@kkmuffme
Copy link
Author

Added some tests and fixed an issue - could you approve the workflow?

@@ -18,3 +18,20 @@ test('works with defaults', async (t) => {

t.is(await read(output), await read('test/fixtures/a.css'))
})

test('fails on invalid explicit config', async (t) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test should be moved to test/error.js

test('fails on invalid explicit config', async (t) => {
const output = tmp('output-ignore.css')

const { error, stderr } = await cli([
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should verify that there's a non-zero exit code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails silently when config not found
2 participants