Skip to content

Commit 02d2487

Browse files
committed
fix(no-unnecessary-act): report everything that's reported in non-strict
1 parent c92e7ff commit 02d2487

File tree

2 files changed

+812
-17
lines changed

2 files changed

+812
-17
lines changed

lib/rules/no-unnecessary-act.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ export default createTestingLibraryRule<Options, MessageIds>({
144144
}
145145

146146
const shouldBeReported = isStrict
147-
? hasSomeNonTestingLibraryCall(blockStatementNode.body) &&
148-
hasTestingLibraryCall(blockStatementNode.body)
147+
? (hasSomeNonTestingLibraryCall(blockStatementNode.body) &&
148+
hasTestingLibraryCall(blockStatementNode.body)) ||
149+
!hasSomeNonTestingLibraryCall(blockStatementNode.body)
149150
: !hasSomeNonTestingLibraryCall(blockStatementNode.body);
150151

151152
if (shouldBeReported) {

0 commit comments

Comments
 (0)