Skip to content

[BUG] "export 'render' was not found in '@testing-library/angular' #87

New issue

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

Closed
geromegrignon opened this issue Apr 5, 2020 · 3 comments · Fixed by #88
Closed

[BUG] "export 'render' was not found in '@testing-library/angular' #87

geromegrignon opened this issue Apr 5, 2020 · 3 comments · Fixed by #88
Labels
bug Something isn't working released

Comments

@geromegrignon
Copy link

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 :

"export 'render' was not found in '@testing-library/angular'

Steps to reproduce

  • ng new
  • npm install --dev @testing-library/angular
  • ng g c counter
  • add content from official example
  • run ng test

Here is the repo.

Dependencies

"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"
  }

Other information

the same error occurs on more complex tests using fireEvent or screen.

@timdeschryver timdeschryver added the bug Something isn't working label Apr 5, 2020
@timdeschryver
Copy link
Member

timdeschryver commented Apr 5, 2020

Oh shoot! I broke it for the jasmine/karma setup 😅
For now, you should be able to use v9.0.0.

I will try to get this resolved ASAP.
Thanks for bringing this up!

@timdeschryver
Copy link
Member

🎉 This issue has been resolved in version 9.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@timdeschryver
Copy link
Member

@geromegrignon Can you try again with version 9.1.1 please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants