| Total Complexity | 4 |
| Complexity/F | 1 |
| Lines of Code | 12 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | /** |
||
| 5 | import 'src/index'; |
||
| 6 | |||
| 7 | jest.mock('src/core/shopware', () => jest.fn()); |
||
|
|
|||
| 8 | jest.mock('src/app/main', () => jest.fn()); |
||
| 9 | |||
| 10 | describe('src/index', () => { |
||
| 11 | it('should import the core and the app', () => { |
||
| 12 | /** |
||
| 13 | * Direct imports can't be tested. Only exported mocked values can be checked |
||
| 14 | */ |
||
| 15 | }); |
||
| 16 | }); |
||
| 17 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.