Skip to content

Commit

Permalink
feat(xsnap): make name available on xsnap object
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Aug 14, 2021
1 parent 8148c13 commit 8c4a16b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/xsnap/src/replay.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export function recordXSnap(options, folderPath, { writeFileSync }) {
const it = xsnap({ ...options, handleCommand });

return freeze({
name: it.name,
isReady: async () => {
nextFile('isReady');
return it.isReady();
Expand Down
1 change: 1 addition & 0 deletions packages/xsnap/src/xsnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export function xsnap(options) {
}

return freeze({
name,
issueCommand,
issueStringCommand,
isReady,
Expand Down

0 comments on commit 8c4a16b

Please sign in to comment.