question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot load HTML with 7.0-alpha2

See original GitHub issue

Hello!

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
mohyeidcommented, Feb 20, 2019

@wtho Thanks. I debugged into the NX builder and found its overriding the globals. There is a ticket open to avoid that.

1reaction
ahnpnlcommented, Dec 27, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found