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
{{ message }}
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
When I serve this, eg via python -m http.server 8888 and then navigate to localhost:8888, I see my mocha tests passing.
Can I keep this same centralized index.html setup when using karma-mocha? All the examples I have found suggest I need to either only use .js files, or I need to use the html2jspreprocessor to convert my HTML to a string and then stick it somewhere via window.__html__.
Is there a way to just serve a vanilla mocha index.html and see if tests fail? Or am I misunderstanding how karma works?
The text was updated successfully, but these errors were encountered:
I've been looking for exactly the same answer. Would be good to hear from someone on the karma-mocha team what the right way to do this is. I need my build index.html vs. only the .js test files.
I have an
index.html
that imports my dependencies and runs mocha, as I would without karma. It is a full HTML document with<head>
,<body>
, etc.At the end of the file:
When I serve this, eg via
python -m http.server 8888
and then navigate tolocalhost:8888
, I see my mocha tests passing.Can I keep this same centralized
index.html
setup when usingkarma-mocha
? All the examples I have found suggest I need to either only use.js
files, or I need to use thehtml2js
preprocessor to convert my HTML to a string and then stick it somewhere viawindow.__html__
.Is there a way to just serve a vanilla mocha
index.html
and see if tests fail? Or am I misunderstanding how karma works?The text was updated successfully, but these errors were encountered: