You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a library that activates a user's webcam and analyzes the captured images. I'd like to test that portion of my code in mocha, but I'm not sure how. I don't imagine it will be possible in the command line (npm test). The browser-based test runner (npm run test-browser) seems plausible, except that it loads with the file:// protocol, instead of localhost. That means the browser prevents the code from accessing the webcam.
Any reccomendations on modifying this boilerplate to run the test runner at http://localhost/test/runner.html (or similar) instead of file:///path/to/project/test/runner.html? Thanks.
The text was updated successfully, but these errors were encountered:
I'm developing a library that activates a user's webcam and analyzes the captured images. I'd like to test that portion of my code in mocha, but I'm not sure how. I don't imagine it will be possible in the command line (
npm test
). The browser-based test runner (npm run test-browser
) seems plausible, except that it loads with thefile://
protocol, instead oflocalhost
. That means the browser prevents the code from accessing the webcam.Any reccomendations on modifying this boilerplate to run the test runner at
http://localhost/test/runner.html
(or similar) instead offile:///path/to/project/test/runner.html
? Thanks.The text was updated successfully, but these errors were encountered: