mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Add webpack as part of the smoketest
This commit is contained in:
parent
423a55b305
commit
dfe35b15bb
14 changed files with 57 additions and 41 deletions
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue