Unit-Test JavaScript of Plain Webpages using Jest

I like to hack little tools together using HTML and plain, old, simple JavaScript. The setup is ridiculously simple, iterations are fast and it runs virtually everywhere. I want to keep those tools as plain and simple as possible without any frameworks like Angular or React. But still I don’t want to miss automated tests. In this post I want to show a simple setup for automated tests for the JavaScript on a plain static webpage using Jest.
Read more →

Blank HTML Template

When creating a new HTML file I find myself searching for simple, empty HTML file template to copy & paste again and again. To end that prodcedure once and for all, this is the template that I’ll use: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title></title> <link href="style.css" rel="stylesheet" /> </head> <body> <script src="script.js"></script> </body> </html> Note: Since HTML5 the type attributes in <script> and <style> are not required anymore and it’s recommended to omit them.
Read more →