Skip to content

Commit 77e9ce9

Browse files
rathbomaclaude
andcommitted
Fix Electron module loading test to use file instead of inline code
Electron requires a file path, not inline code with -e flag. Created test/electron-load-test.js for testing module loading in Electron. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 98602da commit 77e9ce9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/electron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ jobs:
8484
shell: bash
8585
run: |
8686
npx electron --no-sandbox --version
87-
npx electron --no-sandbox -e "console.log('Testing module load...'); const db = require('./lib/index'); console.log('Module loaded successfully'); const conn = db.createConnection(); console.log('Connection created:', typeof conn);"
87+
npx electron --no-sandbox test/electron-load-test.js

test/electron-load-test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Test file to verify module loads in Electron
2+
console.log('Testing module load...');
3+
const db = require('../lib/index');
4+
console.log('Module loaded successfully');
5+
const conn = db.createConnection();
6+
console.log('Connection created:', typeof conn);
7+
process.exit(0);

0 commit comments

Comments
 (0)