Skip to content

Commit

Permalink
feat: add cwd on process info
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Apr 10, 2019
1 parent 221df45 commit da93ade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ export const processInfo = () => {
const info = {
arch: process.arch,
cpuUsage: process.cpuUsage(),
cwd: process.cwd(),
};
// return collected process information
return info;
Expand Down
2 changes: 2 additions & 0 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,5 +381,7 @@ describe('common', () => {
expect(info.arch).to.be.a('string');
expect(info.cpuUsage).to.exist;
expect(info.cpuUsage).to.be.an('object');
expect(info.cwd).to.exist;
expect(info.cwd).to.be.a('string');
});
});

0 comments on commit da93ade

Please sign in to comment.