electron-mocha icon indicating copy to clipboard operation
electron-mocha copied to clipboard

Loading tests from URL - No test files found

Open adventurist opened this issue 1 year ago • 3 comments

Issue

I am serving mocha tests that I wish to consume using Electron's loadURL function.

When I attempt to do this using electron-mocha, I get this error:

Error: No test files found: "test"

Assumption

electron-mocha has been designed with the expectation that test files are always available locally.

Setup

Dependencies

...
"electron": "^32.0.1",
"electron-mocha": "^13.0.0"
...

Running

node_modules/.bin/electron-mocha --url=http://localhost:8891 --main=electron-main.js --renderer=true

Any guidance would be greatly appreciated!

adventurist avatar Sep 16 '24 17:09 adventurist