Stability: 1 - Experimental

    If found, source map data is appended to the top-level key source-map-cache on the JSON coverage object.

    source-map-cache is an object with keys representing the files source maps were extracted from, and values which include the raw source-map URL (in the key url), the parsed Source Map v3 information (in the key data), and the line lengths of the source file (in the key lineLengths).

    1. {
    2. "result": [
    3. {
    4. "scriptId": "68",
    5. "url": "file:///absolute/path/to/source.js",
    6. "functions": []
    7. }
    8. ],
    9. "source-map-cache": {
    10. "file:///absolute/path/to/source.js": {
    11. "url": "./path-to-map.json",
    12. "data": {
    13. "version": 3,
    14. "sources": [
    15. "file:///absolute/path/to/original.js"
    16. ],
    17. "names": [
    18. "Foo",
    19. "console",
    20. "info"
    21. ],
    22. "mappings": "MAAMA,IACJC,YAAaC",
    23. "sourceRoot": "./"
    24. },
    25. "lineLengths": [
    26. 13,
    27. 62,
    28. 38,
    29. 27
    30. ]
    31. }
    32. }
    33. }