mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -05:00
Fix main.test.ts (#1320)
This commit is contained in:
@@ -436,6 +436,10 @@ globalExport('pyscript_get_config', pyscript_get_config);
|
||||
|
||||
// main entry point of execution
|
||||
const globalApp = new PyScriptApp();
|
||||
globalApp.readyPromise = globalApp.main();
|
||||
|
||||
// This top level execution causes trouble in jest
|
||||
if (typeof jest === 'undefined') {
|
||||
globalApp.readyPromise = globalApp.main();
|
||||
}
|
||||
|
||||
export { version };
|
||||
|
||||
Reference in New Issue
Block a user