Skip to content

Coverage is making source map locations invalid #4

@jason0x43

Description

@jason0x43

Without the coverage loader:

× node - EventProxy - #getElementTextPath (0.002s)
    AssertionError: expected 'BODY[1][normalize-space(string())="Hello, world"]' to equal '/HTML/BODY[1][normalize-space(string())="Hello, world"]'
      at Test.#getElementTextPath [as test]  <webpack:/tests/unit/EventProxy.ts:202:11>
      at <src/lib/Test.ts:260:47>

With the coverage loader:

× node - EventProxy - #getElementTextPath (0.002s)
    AssertionError: expected 'BODY[1][normalize-space(string())="Hello, world"]' to equal '/HTML/BODY[1][normalize-space(string())="Hello, world"]'
      at Test.#getElementTextPath [as test]  <webpack:/tests/unit/EventProxy.ts:1:32180>
      at <src/lib/Test.ts:260:47>

Note the source locations in tests/unit/EventProxy.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions