From 2082001ff8702ec48072b59caafe85573a3b2891 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 19 Mar 2021 17:17:38 -0400 Subject: Add snowpack as an example project. (#11) * Initial tests set up This adds tests using uvu (we can switch if people want) and restructures things a bit so that it's easier to test. Like in snowpack you set up a little project. In our tests you can say: ```js const result = await runtime.load('/blog/hello-world') ``` And analyze the result. I included a `test-helpers.js` which has a function that will turn HTML into a cheerio instance, for inspecting the result HTML. * Bring snowpack example in * Formatting --- examples/snowpack/public/img/plug-light.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 examples/snowpack/public/img/plug-light.svg (limited to 'examples/snowpack/public/img/plug-light.svg') diff --git a/examples/snowpack/public/img/plug-light.svg b/examples/snowpack/public/img/plug-light.svg new file mode 100644 index 000000000..371e561ea --- /dev/null +++ b/examples/snowpack/public/img/plug-light.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3