-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
When trying to debug unit tests I am unable to see any source maps for all code in the /src folder.
I can see source maps for the unit tests themselves and can set a breakpoint in a unit test but I can't step through the source code.
To reproduce the error....
- clone the realworld app from https://github.com/dojo/examples.git
- install npm dependencies
- run dojo build -m test
- create a file in root called intern.json
- add the following content to intern.json
{
"environments": [ { "browserName": "chrome" } ],
"suites": [ "output/test/unit.js" ]
}
-install a http server npm i http-server -g
- serve the root of the project by running http-server (Listens on port 8080 by default)
- In a browser navigate to localhost:8080/node_modules/intern/
- When your tests load open chrome developer tools (F12 or Ctrl + Shift + I)
- Navigate to the sources tab in chrome dev tools
- Navigate to
webpack://./src/widgets/Tags.ts
- observe blank source map containing
null
// WEBPACK FOOTER //
// ./src/widgets/Tags.ts
Metadata
Metadata
Assignees
Labels
No labels