Skip to content

source-map-cache improvements#1

Merged
jamestalmage merged 4 commits intojamestalmage:cachingfrom
novemberborn:jamestalmage-caching
Dec 18, 2015
Merged

source-map-cache improvements#1
jamestalmage merged 4 commits intojamestalmage:cachingfrom
novemberborn:jamestalmage-caching

Conversation

@novemberborn
Copy link
Collaborator

Makes lodash a dev dependency, so maybe source-map-cache is OK to just require now. Removed the add() method. Did some bikeshedding so the file is more in line with the rest of nyc.

Source maps are applied to a report that was just read from disk. Cloning is
needed for the tests but otherwise unnecessary.

Change path-related tests to look for the path property on the report, without
comparing the report contents. That's silly now that applySourceMaps() doesn't
do the cloning.

No need to copy coverage.b values when mapping branches.
Use 'report' and fileReport' to be more consistent with index.js.
It was only used by the tests, which can use addMap.
This is no longer used. This was also the last runtime dependency on lodash,
which has now been moved to the dev dependencies.
jamestalmage added a commit that referenced this pull request Dec 18, 2015
@jamestalmage jamestalmage merged commit 0f73158 into jamestalmage:caching Dec 18, 2015
@novemberborn novemberborn deleted the jamestalmage-caching branch December 20, 2015 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants