electron-mocha
Advanced tools
Comparing version 13.0.1 to 13.1.0
@@ -0,1 +1,6 @@ | ||
13.1.0 / 2025-01-16 | ||
------------------- | ||
- Updated to latest Mocha.js | ||
- Fallback to legacy requires if context isolation is disabled in renderer | ||
13.0.0 / 2024-07-23 | ||
@@ -2,0 +7,0 @@ ------------------- |
@@ -36,3 +36,7 @@ 'use strict' | ||
await handleRequires(argv.require) | ||
if (process.type === 'browser' || process.contextIsolated) { | ||
await handleRequires(argv.require) | ||
} else { | ||
handleLegacyRequires(argv.require) | ||
} | ||
@@ -50,3 +54,7 @@ if (validateLegacyPlugin) { | ||
mocha.files = collectFiles(argv).files | ||
await mocha.loadFilesAsync() | ||
if (process.type === 'browser' || process.contextIsolated) { | ||
await mocha.loadFilesAsync() | ||
} | ||
await mocha.run(done) | ||
@@ -53,0 +61,0 @@ } |
{ | ||
"name": "electron-mocha", | ||
"version": "13.0.1", | ||
"version": "13.1.0", | ||
"description": "Mocha tests in Electron.", | ||
@@ -53,8 +53,8 @@ "main": "lib/main.js", | ||
"electron-window": "^0.8.0", | ||
"mocha": "^10.7.0", | ||
"which": "^4.0.0", | ||
"mocha": "^11.0.1", | ||
"which": "^5.0.0", | ||
"yargs": "^17.7.2" | ||
}, | ||
"devDependencies": { | ||
"electron": "^31.1.0", | ||
"electron": "^34.0.0", | ||
"standard": "^17.1.0" | ||
@@ -61,0 +61,0 @@ }, |
41959
434
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedmocha@11.1.0(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedwhich@2.0.25.0.0(transitive)
+ Addedwrap-ansi@8.1.0(transitive)
- Removedcliui@7.0.4(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@8.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedmocha@10.8.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedwhich@4.0.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedyargs@16.2.0(transitive)
- Removedyargs-parser@20.2.9(transitive)
Updatedmocha@^11.0.1
Updatedwhich@^5.0.0