Skip to content

Error stack traces should be printed out for syntax errors #2812

@briandipalma

Description

@briandipalma

Expected behaviour

Syntax errors that prevent any tests being should have their stack traces printed.

Actual behaviour

Syntax errors that prevent any tests being run don't have their stack traces printed.

Environment Details

  • Karma version (output of karma --version): 1.7.0
  • Relevant part of your karma.config.js file

Steps to reproduce the behaviour

  1. Add nonsense variable lol to the top level of any test module.
  2. Watch it fail.
  3. Feel sadness at the lack of stack trace in the error logging.

PR incoming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions