FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't fail silently when config not found by kkmuffme · Pull Request #471 · postcss/postcss-cli · GitHub

Repository navigation

Don't fail silently when config not found - #471

Closed
kkmuffme wants to merge 2 commits into
postcss:masterfrom
kkmuffme:throw-error-when-config-path-is-passed
Closed

kkmuffme wants to merge 2 commits into
postcss:masterfrom
kkmuffme:throw-error-when-config-path-is-passed

Conversation

Copy link
Copy Markdown
Contributor

Fix #467

RyanZim commented Jan 16, 2024

Copy link
Copy Markdown
Collaborator

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

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

Copy link
Copy Markdown
Contributor Author

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

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

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This test should be moved to test/error.js

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

const { error, stderr } = await cli([

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL