Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

no-jest-import.md 719B

1234567891011121314151617181920
  1. # Disallow importing Jest (`no-jest-import`)
  2. The `jest` object is automatically in scope within every test file. The methods
  3. in the `jest` object help create mocks and let you control Jest's overall
  4. behavior. It is therefore completely unnecessary to import in `jest`, as Jest
  5. doesn't export anything in the first place.
  6. ### Rule details
  7. This rule reports on any importing of Jest.
  8. To name a few: `var jest = require('jest');` `const jest = require('jest');`
  9. `import jest from 'jest';` `import {jest as test} from 'jest';`
  10. There is no correct usage of this code, other than to not import `jest` in the
  11. first place.
  12. ## Further Reading
  13. \*[The Jest Object](https://facebook.github.io/jest/docs/en/jest-object.html)