Skip to content

Commit

Permalink
fix(no-focused-tests): report on skip instead of concurrent (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Mar 13, 2021
1 parent 68b3550 commit 2b65b49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rules/__tests__/no-focused-tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ ruleTester.run('no-focused-tests', rule, {
errors: [
{
messageId: 'focusedTest',
column: 4,
column: 15,
line: 1,
suggestions: [
{
Expand Down Expand Up @@ -194,7 +194,7 @@ ruleTester.run('no-focused-tests', rule, {
errors: [
{
messageId: 'focusedTest',
column: 6,
column: 17,
line: 1,
suggestions: [
{
Expand Down
4 changes: 3 additions & 1 deletion src/rules/no-focused-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export default createRule({
) {
context.report({
messageId: 'focusedTest',
node: calleeObject.property,
node: isConcurrentExpression(calleeObject)
? callee.property
: calleeObject.property,
suggest: [
{
messageId: 'suggestRemoveFocus',
Expand Down

0 comments on commit 2b65b49

Please # to comment.