Skip to content

Commit

Permalink
Add parameter and jsdoc to getSnapshot (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored May 1, 2021
1 parent 479fcde commit 37b4768
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/run-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ module.exports = class RunResult {
);
}

getSnapshot() {
return this.fs.dump(this.cwd);
/**
* Return an object with fs changes.
* @param {Function} filter - parameter forwarded to mem-fs-editor#dump
* @returns {Object}
*/
getSnapshot(filter) {
return this.fs.dump(this.cwd, filter);
}

/**
Expand Down

0 comments on commit 37b4768

Please sign in to comment.