Running unit testing with Karma on Google Chrome browser on a Angular 2 application.
No tests were running 😥
√ 0 tests completed
In the Chrome window, the console said
Refused to execute script from 'http://localhost:9876/base/src/tests/test.ts?b58784c03c82bb3f722dcb6d25bd26cdf145b12b' because its MIME type ('video/mp2t') is not executable
I found a solution here saying that I just need to add the following line to karma.conf.js
I love Ecosia, the search engine that plants trees.
But adding their extension to make it your default search engine slows down a bit the speed of searches.
So here is how to add it as default search engine without the extension:
- Go to the Parameters of Google Chrome
- Then under “Search”, click “manage seach engines”
- Add a new search engine at the end of the list with this string as the URL
- Make it your default search engine
Warning: Doing this will remove the auto-suggestion that Google gives you while you’re typing a search in your address bar 😦
If you want to do a particular search with Google (or another search engine existing in the list), simply type the keyword assiociated to this search engine, then TAB, then your search.
When my computer was tunring up from sleep, Google Chrome was super slow to load the first page. The status bar indicated “Téléchargement du script du proxy en cours”.
The solution to this problem is to uncheck the following option: