test-bundler.js: use more robust rejection catching
MODIFY
integration-test/test/utility/test-bundler.js
integration-test/test/utility/test-bundler.js
@@ -36,11 +36,13 @@ const runBrowserTests = async indexFile => {
const testBundler = (bundlerName, indexFile) => {
test(`SES works with ${bundlerName}`, t => {
- runBrowserTests(indexFile).then(({ numTests, numPass }) => {
+ runBrowserTests(indexFile)
+ .then(({ numTests, numPass }) => {
t.notEqual(numTests, undefined);
t.equal(numTests, numPass);
- t.end();
- });
+ })
+ .catch(e => t.isNot(e, e, 'unexpected exception'))
+ .finally(() => t.end());
});
};

test-bundler.js: use more robust rejection catching