ampproject / ampproject/amphtml
`expectAsyncConsoleError` not throwing error
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
I tried to use the `expectAsyncConsoleError()` method, but it's not failing a unit test as I expected. Am I missing anything?
Here's my fake test (#28439 is the draft PR)
```
describe('test', () => {
afterEach(() => {
console.log('done');
});
it('my fake test', () => {
expectAsyncConsoleError('fake message');
});
});
```
The test passed. Got

When I tried to debug it, I noticed the test was run twice and failed the second time.

Contributor guide
Assessment
This issue has not been assessed yet.