Add webpack as part of the smoketest

This commit is contained in:
Alex Dima 2021-11-15 22:16:09 +01:00
parent 423a55b305
commit dfe35b15bb
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
14 changed files with 57 additions and 41 deletions

View file

@ -35,14 +35,21 @@ yaserver
});
async function runTests() {
await runTest('chromium');
await runTest('firefox');
// await runTest('webkit');
for (const type of ['amd', 'webpack']) {
await runTest(type, 'chromium');
await runTest(type, 'firefox');
// await runTest(type, 'webkit');
}
}
function runTest(browser) {
/**
* @param {string} type
* @param {'chromium'|'firefox'|'webkit'} browser
* @returns
*/
function runTest(type, browser) {
return new Promise((resolve, reject) => {
const env = { BROWSER: browser, ...process.env };
const env = { BROWSER: browser, TESTS_TYPE: type, ...process.env };
if (DEBUG_TESTS) {
env['DEBUG_TESTS'] = 'true';
}