This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch chore/update-actions-dependabot
in repository https://gitbox.apache.org/repos/asf/cordova-js.git
The following commit(s) were added to
refs/heads/chore/update-actions-dependabot by this push:
new 3617d1c1 chore: update karma config to await for
puppeteer.executablePath()
3617d1c1 is described below
commit 3617d1c168c790a628840b394a1e0b176a66635b
Author: Erisu <[email protected]>
AuthorDate: Thu Aug 27 14:56:31 2026 +0900
chore: update karma config to await for puppeteer.executablePath()
---
karma.conf.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/karma.conf.js b/karma.conf.js
index 3a364ca4..e5f2f172 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -18,11 +18,12 @@
*/
// Use Chrome executable installed through npm
-process.env.CHROME_BIN = require('puppeteer').executablePath();
+const puppeteer = require('puppeteer');
-module.exports = function (config) {
- config.set({
+module.exports = async function (config) {
+ process.env.CHROME_BIN = await puppeteer.executablePath();
+ config.set({
// base path that will be used to resolve all patterns (eg. files,
exclude)
basePath: '',
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]