summaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-03-21get test runner runningGravatar Fred K. Schott 1-13/+14
2021-03-21lots of improvementsGravatar Fred K. Schott 1-5/+5
2021-03-19Add snowpack as an example project. (#11)Gravatar Matthew Phillips 1-0/+73
* 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
2021-03-19Initial tests set up (#10)Gravatar Matthew Phillips 5-0/+69
* Begin debugging * 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. * Add CI * Remove extra console logs * Formatting