Blog
Services
Docs
Donate
Status
English
Bahasa Indonesia
Deutsch
English
Español
Esperanto
Filipino
Français
Italiano
Latviešu
Magyar nyelv
Nederlands
Polski
Português de Portugal
Português do Brasil
Slovenščina
Suomi
Svenska
Türkçe
Čeština
Ελληνικά
Български
Русский
Українська
فارسی
日本語
简体中文
繁體中文(台灣)
繁體中文(香港)
한국어
Ark
Search
Create
Migrate
Explore
Login
Blog
Docs
Status
Explore
Login
Ark
Infrastructure
/
astro
Watch
0
Fork
You've already forked astro
0
mirror of
https://github.com/withastro/astro.git
synced
2024-12-30 22:03:56 -05:00
Code
Issues
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 16:07:45 -05: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 14:14:32 -05:00
}
Reference in a new issue
Copy permalink