Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Npm command test:lint failing #345

Open
arhtudormorar opened this issue May 13, 2021 · 1 comment
Open

Npm command test:lint failing #345

arhtudormorar opened this issue May 13, 2021 · 1 comment

Comments

@arhtudormorar
Copy link

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.

> testingit@1.0.0 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! testingit@1.0.0 test:lint: `eslint .`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the testingit@1.0.0 test:lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@maa105
Copy link

maa105 commented May 25, 2021

I did the following change to the package.json:

-    "test:lint": "eslint .",
+    "test:lint": "eslint ./src/*.tsx",

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

No branches or pull requests

2 participants