This `test/src/rules/extensions.js` test should be failing with 2 errors not 1
See original GitHub issueThis invalid
test should fail with 2 errors – 1 for .js
and another for .jsx
.
The error that I believe is missing:
{
message: 'Unexpected use of file extension "jsx" for "./bar.jsx"',
line: 2,
column: 22,
},
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Mocha tests not failing when they should - Stack Overflow
I'm using a MEAN stack, and I tried to test the node files with jasmine, since I'm already using that to test the...
Read more >Need help, code seems right but still getting error when i test ...
Ran all test suites matching /user-report/i. ... Jest did not exit one second after the test run has completed. This usually means that...
Read more >TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >Should.js API Documentation
It should accept 2 arguments: should function and Assertion constructor ... on execution of sequenced assertion to do not check all , but...
Read more >GitHub - tj/should.js: BDD style assertions for node.js
BDD style assertions for node.js -- test framework agnostic - GitHub ... Error (to check if it is error) or should(value).not.ok (to check...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We should probably audit all of the tests for this rule to see where the problem is.
Sounds like we might want to add more test cases, but everything’s correct as-is?