Skip to content

Commit

Permalink
Applied comments after the review
Browse files Browse the repository at this point in the history
  • Loading branch information
r3nya committed Feb 7, 2019
1 parent cf36683 commit 2b342c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/jest-leak-detector/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

import v8 from 'v8';
import vm from 'vm';
import prettyFormat from 'pretty-format';

export default class {
_isReferenceBeingHeld: boolean;
private _isReferenceBeingHeld: boolean;

constructor(value: any) {
if (this._isPrimitive(value)) {
Expand Down Expand Up @@ -53,7 +51,7 @@ export default class {
return this._isReferenceBeingHeld;
}

_runGarbageCollector() {
private _runGarbageCollector() {
const isGarbageCollectorHidden = !global.gc;

// GC is usually hidden, so we have to expose it before running.
Expand Down
5 changes: 4 additions & 1 deletion packages/jest-leak-detector/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "build"
}
},
"references": [
{"path": "../pretty-format"}
]
}

0 comments on commit 2b342c9

Please sign in to comment.