debt - more polish in global test reporter (#192774)

* debt - more polish in global test reporter

* cleanup

* cleanup

* fixes
This commit is contained in:
Benjamin Pasero
2023-09-11 17:16:16 +02:00
committed by GitHub
parent 406fab60ac
commit 0c5c400ea5
8 changed files with 98 additions and 85 deletions

View File

@@ -23,16 +23,6 @@
window.alert = function () { throw new Error('window.alert() is not supported in tests!'); }
window.confirm = function () { throw new Error('window.confirm() is not supported in tests!'); }
// Ignore uncaught cancelled promise errors
window.addEventListener('unhandledrejection', e => {
const name = e && e.reason && e.reason.name;
if (name === 'Canceled') {
e.preventDefault();
e.stopPropagation();
}
});
mocha.setup({
ui: 'tdd',
timeout: typeof process.env['BUILD_ARTIFACTSTAGINGDIRECTORY'] === 'string' ? 30000 : 5000,