happo/happo.io

Silent failures when happo files are misconfigured

trotzig opened this issue · 0 comments

In a standard happo run (no plugins), this happo test file will not cause any errors:

export default () => <div>Foo</div>;
export const bar = () => <div>Foo</div>;
export const baz = <div>Foo</div>;

(notice how baz is not a function)

The end result will contain default and bar (baz will be ignored).

If we then apply the happo-plugin-puppeteer plugin, even weirder things happen. Suddenly none of the examples from the file are rendered, and there are no errors at all - nothing in the log (even with VERBOSE=true).