Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

testNext failures in CI: for-await-of #4784

Closed
JoshuaKGoldberg opened this issue Jul 4, 2019 · 0 comments · Fixed by #4800
Closed

testNext failures in CI: for-await-of #4784

JoshuaKGoldberg opened this issue Jul 4, 2019 · 0 comments · Fixed by #4800

Comments

@JoshuaKGoldberg
Copy link
Contributor

Example build failure: https://circleci.com/gh/palantir/tslint/16351?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

test/rules/await-promise/for-await-of/test.ts.lint: Failed!
Expected (from .lint file)
Actual (from TSLint)
  async function correct(foo: AsyncIterableIterator<string>) {
      for await (const element of foo) {}
  }
  
  async function correct2() {
      for await (const element of asyncGenerator()) {}
-                                 ~~~~~~~~~~~~~~~~     [Invalid 'for-await-of' of a non-AsyncIterable value.]
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant