Cannot load HTML with 7.0-alpha2
See original GitHub issueHello!
Thanks for your work on this. I’ve upgraded to 7.0.0-alpha.2 and things seem to be a bit broken. Currently most tests fail with an error message of: Error: Uncaught (in promise): Failed to load button.component.html
.
Here’s the Jest config:
"jest": {
"preset": "jest-preset-angular",
"setupFiles": [
"jest-canvas-mock"
],
"setupTestFrameworkScriptFile": "<rootDir>/config/jest/config.ts",
"transform": {
"^.+\\.(ts|js|html)$": "ts-jest"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!@ngrx|@agm)"
],
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.spec.json",
"diagnostics": false,
"stringifyContentPathRegex": "\\.html$"
},
"window": true
},
Any idea what might be happening here?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8
Top Results From Across the Web
Issues for Elasticsearch Connector | Drupal.org
Title Status Priority Category Ver...
LIKE filter missing Needs review Normal Feature request 8.0...
Add geo_distance proximity filter Needs review Normal Feature request 8.x...
Content access...
Read more >[JBIDE-13403] Code completion for jQuery Mobile HTML attributes ...
Working with new HTML page created based on template HTML5 jQuery Mobile Page. If this is correct behavior just resolve this Jira and...
Read more >Distribution Release: MOPSLinux 7.0 (DistroWatch.com News)
Rate this project · MOPSLinux 7.0, a Slackware-based desktop Linux distribution with a custom package management tool, has been released.
Read more >phpnuke 7.0 - Ravens PHP Scripts
This forum is locked: you cannot post, reply to, or edit topics. Ravens PHP Scripts And Web Hosting Forum ... Whole Site is...
Read more >Changelog :: Gloo Portal - Solo.io Docs
Return a generic error to the user on login if unable to authenticate for any reason, resolving the ... open-policy-agent/opa has been upgraded...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@wtho Thanks. I debugged into the NX builder and found its overriding the globals. There is a ticket open to avoid that.
@mcblum you can run
yarn run jest --clearCache
first and then run normal test command. It will do the same as--no-cache
but it clears cache for you once. The next time after your tests finish, it caches the correct configuration.