mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
test - integration - better error handling
This commit is contained in:
parent
f804567d24
commit
0a5a46b8f4
@ -6,15 +6,14 @@ const bundlePath = path.join(__dirname, 'bundle.js')
|
||||
|
||||
const b = browserify()
|
||||
|
||||
try {
|
||||
const writeStream = fs.createWriteStream(bundlePath)
|
||||
const writeStream = fs.createWriteStream(bundlePath)
|
||||
|
||||
tests.forEach(function (fileName) {
|
||||
b.add(path.join(__dirname, 'lib', fileName))
|
||||
})
|
||||
|
||||
b.bundle().pipe(writeStream)
|
||||
} catch (err) {
|
||||
throw new Error('Integration tests build failure - ' + err.stack)
|
||||
}
|
||||
tests.forEach(function (fileName) {
|
||||
b.add(path.join(__dirname, 'lib', fileName))
|
||||
})
|
||||
|
||||
b.bundle()
|
||||
.pipe(writeStream)
|
||||
.on('error', (err) => {
|
||||
throw err
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user