This website requires JavaScript.
Explore
Help
Sign in
michael
/
astro
Watch
1
Star
0
Fork
You've already forked astro
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
cffde0192b
astro
/
test
/
test-utils.js
6 lines
91 B
JavaScript
Raw
Normal View
History
Unescape
Escape
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 21:07:45 +00:00
import
cheerio
from
'cheerio'
;
export
function
doc
(
html
)
{
return
cheerio
.
load
(
html
)
;
Absorb Snowpack config inside Astro (#32) * Absorb Snowpack config inside Astro * Add basic README * Format tests * Update esbuild * Format tests
2021-03-26 19:14:32 +00:00
}
Reference in a new issue
Copy permalink