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
On a newly angular 9.1 project, i added testing-library/angular and a counter component as provided into the official example;
When launching ng test, i have the following error :
ng test
"export 'render' was not found in '@testing-library/angular'
ng new
npm install --dev @testing-library/angular
ng g c counter
Here is the repo.
"dependencies": { "@angular/animations": "~9.1.0", "@angular/common": "~9.1.0", "@angular/compiler": "~9.1.0", "@angular/core": "~9.1.0", "@angular/forms": "~9.1.0", "@angular/platform-browser": "~9.1.0", "@angular/platform-browser-dynamic": "~9.1.0", "@angular/router": "~9.1.0", "rxjs": "~6.5.4", "tslib": "^1.10.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.901.0", "@angular/cli": "~9.1.0", "@angular/compiler-cli": "~9.1.0", "@angular/language-service": "~9.1.0", "@testing-library/angular": "^9.1.0", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "codelyzer": "^5.1.2", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.4.1", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~2.1.0", "karma-jasmine": "~3.0.1", "karma-jasmine-html-reporter": "^1.4.2", "protractor": "~5.4.3", "ts-node": "~8.3.0", "tslint": "~6.1.0", "typescript": "~3.8.3" }
the same error occurs on more complex tests using fireEvent or screen.
fireEvent
screen
The text was updated successfully, but these errors were encountered:
Oh shoot! I broke it for the jasmine/karma setup 😅 For now, you should be able to use v9.0.0.
jasmine/karma
v9.0.0
I will try to get this resolved ASAP. Thanks for bringing this up!
Sorry, something went wrong.
fix: compile as ES2015 to supprt karma tests
0438b77
Closes #87
🎉 This issue has been resolved in version 9.1.1 🎉
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot 📦🚀
@geromegrignon Can you try again with version 9.1.1 please?
Successfully merging a pull request may close this issue.
Bug report
On a newly angular 9.1 project, i added testing-library/angular and a counter component as provided into the official example;
When launching
ng test
, i have the following error :Steps to reproduce
ng new
npm install --dev @testing-library/angular
ng g c counter
ng test
Here is the repo.
Dependencies
Other information
the same error occurs on more complex tests using
fireEvent
orscreen
.The text was updated successfully, but these errors were encountered: