forked from ipfs/js-ipfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aegir.js
48 lines (45 loc) · 981 Bytes
/
.aegir.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
'use strict'
const EchoServer = require('aegir/utils/echo-server')
const echoServer = new EchoServer()
module.exports = {
bundlesize: { maxSize: '80kB' },
karma: {
files: [
{
pattern: 'node_modules/interface-ipfs-core/test/fixtures/**/*',
watched: false,
served: true,
included: false
},
{
pattern: 'dist/**/*',
watched: true,
served: true,
included: false
}
],
browserNoActivityTimeout: 210 * 1000,
singleRun: true,
captureConsole: true,
logLevel: 'LOG_DEBUG',
mocha: {
bail: true
}
},
hooks: {
browser: {
pre: async () => {
await echoServer.start()
return {
env: {
IPFS_WORKER_URL: `/base/dist/worker.bundle.js`,
ECHO_SERVER: `http://${echoServer.host}:${echoServer.port}`
}
}
},
post: async () => {
await echoServer.stop()
}
}
}
}