astro/examples/snowpack/public/img/logos/jest.svg
Matthew Phillips 2082001ff8
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
2021-03-19 17:17:38 -04:00

12 lines
3 KiB
XML

<svg width="399" height="440" viewBox="0 0 399 440" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M334.919 218.102C334.379 218.43 316.57 215.442 294.254 213.931C276.029 212.696 254.798 212.743 237.51 213.914C223.491 214.863 205.072 207.816 202.871 216.191C194.633 247.542 176.908 274.846 154.36 296.119C137.397 312.122 117.983 324.257 96.985 331.734C71.986 318.892 60.18 290.33 70.833 265.287C79.282 245.424 89.113 223.547 70.963 218.542C57.75 214.898 50.495 227.555 45.416 241.087C35.686 267.01 17.197 293.835 11.928 325.608C6.36603 359.15 11.91 394.755 40.92 414.861C108.482 461.687 181.82 385.833 259.145 366.765C287.169 359.854 317.93 360.968 342.62 346.668C361.161 335.929 373.384 318.133 376.853 298.152C382.433 266.015 365.714 234.086 334.919 218.102Z" fill="#C21325" stroke="white" stroke-width="20"/>
<path d="M202.871 216.191C194.633 247.542 176.908 274.846 154.36 296.119C137.397 312.122 117.983 324.257 96.984 331.734C71.985 318.892 60.179 290.33 70.832 265.287C79.281 245.424 89.112 223.547 70.962 218.542C57.749 214.898 50.494 227.555 45.415 241.087C35.685 267.01 17.196 293.835 11.927 325.608C6.36504 359.15 11.909 394.755 40.919 414.861C108.481 461.687 181.819 385.833 259.145 366.765C287.169 359.854 317.93 360.968 342.62 346.668C361.161 335.929 373.384 318.133 376.853 298.153C382.433 266.016 365.714 234.087 334.919 218.103" stroke="white" stroke-width="20"/>
<path d="M264.892 91.17L319.213 201.982L384.306 10H145.317L210.26 201.641L264.892 91.17Z" fill="#C21325"/>
<path d="M264.892 91.17L319.213 201.982L384.305 10H145.317L210.26 201.641L264.892 91.17Z" stroke="white" stroke-width="20"/>
<path d="M198.988 257.528C221.601 257.528 239.933 239.196 239.933 216.583C239.933 193.97 221.601 175.638 198.988 175.638C176.375 175.638 158.043 193.97 158.043 216.583C158.043 239.196 176.375 257.528 198.988 257.528Z" fill="#C21325"/>
<path d="M198.988 257.528C221.601 257.528 239.933 239.196 239.933 216.583C239.933 193.97 221.601 175.638 198.988 175.638C176.375 175.638 158.043 193.97 158.043 216.583C158.043 239.196 176.375 257.528 198.988 257.528Z" stroke="white" stroke-width="20"/>
<path d="M332.372 257.528C354.985 257.528 373.317 239.196 373.317 216.583C373.317 193.97 354.985 175.638 332.372 175.638C309.759 175.638 291.427 193.97 291.427 216.583C291.427 239.196 309.759 257.528 332.372 257.528Z" fill="#C21325" stroke="white" stroke-width="20"/>
<path d="M332.372 257.528C354.985 257.528 373.317 239.196 373.317 216.583C373.317 193.97 354.985 175.638 332.372 175.638C309.759 175.638 291.427 193.97 291.427 216.583C291.427 239.196 309.759 257.528 332.372 257.528Z" stroke="white" stroke-width="20"/>
<path d="M65.099 257.822C87.7123 257.822 106.044 239.49 106.044 216.877C106.044 194.264 87.7123 175.932 65.099 175.932C42.4857 175.932 24.1541 194.264 24.1541 216.877C24.1541 239.49 42.4857 257.822 65.099 257.822Z" fill="#C21325"/>
<path d="M65.099 257.822C87.7123 257.822 106.044 239.49 106.044 216.877C106.044 194.264 87.7123 175.932 65.099 175.932C42.4857 175.932 24.1541 194.264 24.1541 216.877C24.1541 239.49 42.4857 257.822 65.099 257.822Z" stroke="white" stroke-width="20"/>
</svg>