-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Newly created app fails ESlint checks and fails to call test target on preact CLI #369
Comments
Also, once you fix the eslint warnings and the build succeeds you get the following failure cause preact CLI does not have a
|
I spend some time investigating to see how the target I don't know if it is removed on purpose since it failed or if it was just left out on error during the refactoring but preact does not have a test argument, so this should not be here anyway. I made a PR that fixes the ESlint warnings and errors in case you want to just keep And by running just the eslint, the command
It would be great though in general if this starter guide was adding at least some basic tests in the example. |
We are moving to custom templates in the next version of the preact-cli, so the examples in preact-cli is gonna be removed. Regarding the test command, We are going to leave that in the user land so, the user can go ahead and use either Jest/Mocha/Chai/Enzyme and configure the app according to it. Regarding the ESLint issue, we are planning to move to a new preset instead of using the current one. So, in the next version all these problems will be handled gracefully. 😄 |
OK good to know. It's just bad first experience of the framework when creating a new app with the recommended CLI and then failing to build;p Thanks |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When I run
yarn test
in a newly created preact app it fails with 2 errors and 2 eslint warnings.If the current behavior is a bug, please provide the steps to reproduce.
preact create app-name --yarn
yarn test
What is the expected behavior?
The project should conform to all defined ESLint rules.
Please mention other relevant information.
preact cli
preact-cli 1.4.1
node version
node v7.4.0
yarn v1.0.1
npm version
npm v4.0.5
Operating system
uname -a
: Linux thinkmint 3.13.0-24-generic require.ensure named-chunk from async-component-loader is unsafe for URL #47-Ubuntu SMP x86_64 x86_64 x86_64 GNU/LinuxOutput
The text was updated successfully, but these errors were encountered: