File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ b benchmark benchmarks:
19
19
20
20
.PHONY : l ld leak leak-detection
21
21
l ld leak leak-detection :
22
+ npm i @airbnb/node-memwatch --no-save || npm i memwatch-next --no-save
22
23
@ITERATIONS=$(ITERATIONS ) $(TESTER ) leak-detection \
23
24
--recursive \
24
25
--reporter spec \
Original file line number Diff line number Diff line change 5
5
6
6
'use strict' ;
7
7
8
- var memwatch = require ( 'memwatch-next' ) ;
8
+ var memwatch ;
9
+
10
+ try {
11
+ memwatch = require ( '@airbnb/node-memwatch' ) ;
12
+ } catch ( e ) {
13
+ memwatch = require ( 'memwatch-next' ) ;
14
+ }
9
15
var sinon = require ( 'sinon' ) ;
10
16
11
17
describe ( 'leak detector' , function ( ) {
Original file line number Diff line number Diff line change 39
39
"eslint" : " ^5.1.0" ,
40
40
"eslint-config-loopback" : " ^10.0.0" ,
41
41
"loopback-datasource-juggler" : " ^3.23.0" ,
42
- "memwatch-next" : " ^0.3.0" ,
43
42
"mocha" : " ^5.2.0" ,
44
43
"rc" : " ^1.2.8" ,
45
44
"semver" : " ^5.5.1" ,
You can’t perform that action at this time.
0 commit comments