create-react-library
create-react-library copied to clipboard
Npm command test:lint failing
Hi!
When creating a new app from scratch and running npm run test, I get the following message:
PASS src/index.test.tsx
ExampleComponent
✓ is truthy (2ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 1.297s
Ran all test suites.
> [email protected] test:lint /home/tudor/test/testingit
> eslint .
Oops! Something went wrong! :(
ESLint: 6.8.0.
No files matching the pattern "." were found.
Please check for typing mistakes in the pattern.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] test:lint: `eslint .`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] test:lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I did the following change to the package.json:
- "test:lint": "eslint .",
+ "test:lint": "eslint ./src/*.tsx",