The web framework that scales with you — Build fast content sites, powerful web applications, dynamic server APIs, and everything in-between ️ Star to support our work!
Find a file
Matthew Phillips 17c3c98f07
Initial tests set up (#10)
* 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
2021-03-19 17:07:45 -04:00
.github/workflows Initial tests set up (#10) 2021-03-19 17:07:45 -04:00
src Initial tests set up (#10) 2021-03-19 17:07:45 -04:00
test Initial tests set up (#10) 2021-03-19 17:07:45 -04:00
.eslintrc.cjs Fix a few lint errors 2021-03-16 12:43:23 -06:00
.gitignore initial commit 2021-03-15 13:22:05 -04:00
.prettierrc.json Annoying Lint PR™ (#3) 2021-03-16 12:37:45 -06:00
astro.mjs Add a proper cli 2021-03-15 15:26:23 -04:00
LICENSE Bring compiler into Astro (#4) 2021-03-16 16:08:11 -04:00
package-lock.json Initial tests set up (#10) 2021-03-19 17:07:45 -04:00
package.json Initial tests set up (#10) 2021-03-19 17:07:45 -04:00
snowpack-plugin.cjs Inject styling in HTML AST (#9) 2021-03-19 14:55:06 -06:00
tsconfig.json initial commit 2021-03-15 13:22:05 -04:00