File tree 2 files changed +21
-23
lines changed
2 files changed +21
-23
lines changed Original file line number Diff line number Diff line change @@ -4,22 +4,20 @@ const { createServer } = require('ipfsd-ctl')
4
4
let server
5
5
6
6
module . exports = {
7
- hooks : {
8
- browser : {
9
- pre : async ( ) => {
10
- server = createServer ( {
11
- host : '127.0.0.1' ,
12
- port : 57483
13
- } , {
14
- type : 'go' ,
15
- ipfsHttpModule : require ( 'ipfs-http-client' ) ,
16
- ipfsBin : require ( 'go-ipfs' ) . path ( ) ,
17
- test : true
18
- } )
7
+ test : {
8
+ before : async ( ) => {
9
+ server = createServer ( {
10
+ host : '127.0.0.1' ,
11
+ port : 57483
12
+ } , {
13
+ type : 'go' ,
14
+ ipfsHttpModule : require ( 'ipfs-http-client' ) ,
15
+ ipfsBin : require ( 'go-ipfs' ) . path ( ) ,
16
+ test : true
17
+ } )
19
18
20
- await server . start ( )
21
- } ,
22
- post : ( ) => server . stop ( )
23
- }
19
+ await server . start ( )
20
+ } ,
21
+ after : ( ) => server . stop ( )
24
22
}
25
23
}
Original file line number Diff line number Diff line change 18
18
"coverage" : " aegir coverage"
19
19
},
20
20
"devDependencies" : {
21
- "aegir" : " ^29.1 .0" ,
22
- "go-ipfs" : " ^0.7 .0" ,
23
- "ipfs-http-client" : " ^48.1.2 " ,
24
- "ipfs-utils" : " ^5 .0.1 " ,
25
- "ipfsd-ctl" : " ^7.0.2 " ,
21
+ "aegir" : " ^33.0 .0" ,
22
+ "go-ipfs" : " ^0.8 .0" ,
23
+ "ipfs-http-client" : " ^49.0.4 " ,
24
+ "ipfs-utils" : " ^6 .0.6 " ,
25
+ "ipfsd-ctl" : " ^7.2.0 " ,
26
26
"it-all" : " ^1.0.0" ,
27
27
"it-drain" : " ^1.0.0" ,
28
28
"peer-id" : " ^0.14.0" ,
29
- "uint8arrays" : " ^1 .1.0 "
29
+ "uint8arrays" : " ^2 .1.4 "
30
30
},
31
31
"dependencies" : {
32
32
"debug" : " ^4.1.1" ,
33
33
"it-drain" : " ^1.0.3" ,
34
- "multiaddr" : " ^8 .0.0 " ,
34
+ "multiaddr" : " ^9 .0.1 " ,
35
35
"p-defer" : " ^3.0.0" ,
36
36
"p-queue" : " ^6.2.1"
37
37
},
You can’t perform that action at this time.
0 commit comments