We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ember new sample; cd ./sample # Create a new ember app ember install ember-cli-typescript # Set up typescript support ember g component foo
The file generated tests/integration/components/foo-test.ts has an error "Object is possibly null" on this line. https://github.com/mcfiredrill/ember-cli-ts-test-bug/blob/main/tests/integration/components/foo-test.ts#L15
I have a repo here that reproduces the error. https://github.com/mcfiredrill/ember-cli-ts-test-bug/blob/main/tests/integration/components/foo-test.ts#L15
The text was updated successfully, but these errors were encountered:
Thanks for filing this! It is, unfortunately, a known issue. We're tracking the work to fix it in the existing blueprints in typed-ember/ember-cli-typescript-blueprints#240 and typed-ember/ember-cli-typescript-blueprints#75; and more importantly we're working on solving it much more holistically by way of implementing Ember RFCs: #0776: Author Built-In Blueprints in TypeScript and #0785: Introduce new test helpers for rendering (and re-rendering) that obviate the need for get and set. The combination of those will mean that we don't need the ember-cli-typescript-blueprints repo anymore and that it will be much easier to generate tests which are easy to type.
get
set
Sorry, something went wrong.
Given the above, I'm closing this, but wanted to say thank you again for reporting!
No branches or pull requests
Which package(s) does this problem pertain to?
What are instructions we can follow to reproduce the issue?
The file generated tests/integration/components/foo-test.ts has an error "Object is possibly null" on this line.
https://github.com/mcfiredrill/ember-cli-ts-test-bug/blob/main/tests/integration/components/foo-test.ts#L15
Reproduction Case
I have a repo here that reproduces the error.
https://github.com/mcfiredrill/ember-cli-ts-test-bug/blob/main/tests/integration/components/foo-test.ts#L15
The text was updated successfully, but these errors were encountered: