Skip to content

[valid-title]: TypeError when no arguments passed to test: Cannot read property 'type' of undefined #435

Closed
@G-Rath

Description

@G-Rath
it();
TypeError: Cannot read property 'type' of undefined
Occurred while linting C:\Users\G-Rath\workspace\projects-personal\terraporter\test\src\printers\printPrimitiveLiteral.spec.ts:4
    at isStringLiteral (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint-plugin-jest\lib\rules\utils.js:53:47)
    at isStringNode (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint-plugin-jest\lib\rules\utils.js:85:43)
    at getNodeTitle (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint-plugin-jest\lib\rules\valid-title.js:24:34)
    at CallExpression (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint-plugin-jest\lib\rules\valid-title.js:48:23)
    at listeners.(anonymous function).forEach.listener (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint\lib\linter\safe-emitter.js:45:58)
    at Array.forEach (<anonymous>)
    at Object.emit (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint\lib\linter\node-event-generator.js:253:26)
    at NodeEventGenerator.applySelectors (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint\lib\linter\node-event-generator.js:282:22)
    at NodeEventGenerator.enterNode (C:\Users\G-Rath\workspace\projects-personal\terraporter\node_modules\eslint\lib\linter\node-event-generator.js:296:14)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions