[jest-circus] Omit expect.hasAssertions()
errors if a test already has errors
#13320
Annotations
3 errors
|
e2e/__tests__/failures.test.ts#L36
expect(received).toMatchSnapshot()
Snapshot name: `not throwing Error objects 4`
- Snapshot - 16
+ Received + 0
@@ -20,26 +20,10 @@
14 | const redeclare = () => {
15 | expect.assertions(1);
at Object.toBeTruthy (__tests__/assertionCount.test.js:12:17)
- ● .assertions() › throws
-
- expect.assertions(2)
-
- Expected two assertions to be called but received one assertion call.
-
- 9 |
- 10 | const throws = () => {
- > 11 | expect.assertions(2);
- | ^
- 12 | expect(false).toBeTruthy();
- 13 | };
- 14 | const redeclare = () => {
-
- at Object.assertions (__tests__/assertionCount.test.js:11:10)
-
● .assertions() › throws on redeclare of assertion count
expect(received).toBeTruthy()
Received: false
at Object.toMatchSnapshot (e2e/__tests__/failures.test.ts:36:31)
|
|
The logs for this run have expired and are no longer available.
Loading