hirezio / given

A monorepo for jasmine / jest addons that help you clean up your microtests by breaking them into a Given / When / Then structure.
MIT License
21 stars 4 forks source link

Warning in unit test console about loading source map #4

Open elira opened 3 years ago

elira commented 3 years ago

Describe the bug When running angular tests with jasmine-given enabled. There is a warning in the console:

DevTools failed to load SourceMap: Could not load content for http://localhost:9876/absoluteE:/Users/**/node_modules/@hirez_io/jasmine-given/dist/jasmine-given.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

( the ** is part of the path with client related names ).

I think this might be messing with the unit test debugging lines. As the breakpoints are not enabled for the correct lines in developer tools.

Expected behavior The file is there, so I'm not sure why there is a warning.

Screenshots image

Desktop (please complete the following information):

shairez commented 3 years ago

That's weird indeed

In your screenshot I can see something is being added to the url - /absoluteE:/ Maybe this is the hint to what to change in your configuration to make it work?