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
Tony Sullivan ff56f083bc
Adding E2E tests for client hydration and HMR (#3374)
* adding Tailwind E2E tests with Playwright

* package.json updates

* adding e2e tests to CI workflow

* using e2e for dev tests, mocha for build tests

* refactor: sharing test-utils helpers

* chore: update lockfile

* Adding contributing docs

* Revert "refactor: sharing test-utils helpers"

This reverts commit 48496f43bc99eab30747baf6e83041ba4932e786.

* refactor: simpler solution to resolving e2e test fixtures

* chore: updating lockfile

* refactor: cleaning up how URLs are resolved in e2e tests

* install playwright deps in CI

* ensure playwright deps are installed during CI

* adding a basic HMR test for tailwind styles

* using @e2e for playwright test packages

* adding react hydration and HMR tests

* adding hydration and HMR tests  for preact

* adding svelte hydration and HMR tests

* adding solid-js hydration and HMR tests

* adding solid hydration and HMR tests

* adding vue hydration and HMR tests

* adding client:media tests

* fixing Lit hydration and HMR tests

* fixing up the Vue e2e tests

* fixing up svelte tests

* chore: test cleanup

* chore: cleaning up test element IDs

* chore: updating lock file

* chore: update lockfile after merge

* TEMP: disabling React e2e tests

* Revert "TEMP: disabling React e2e tests"

This reverts commit ed1bad9cbc.

* updating to use the new editFiles helper

* chore: updating lock file

* updating lock file

* updating lockfile

* TEMP: watching for console logs

* TEMP: testing typescript tests

* updating test:e2e scripts for config file

* seems like it didn't find the config file?

* use a fresh dev server for each test

* removing Lit tests for now

* Revert "removing Lit tests for now"

This reverts commit 4970a8093e.

* updating test config for CI

* WIP: disabling HMR tests to track down why they're unreliable

* TEMP: logging to debug HMR test

* afterEach isn't a global in Playwright

* fix: the test's file reset helper was using a URL not filepath

* one last try, why is the HMR test hanging at cleanup?

* resetting files after tailwind HMR test

* create the onNextChange watcher before editFile is called

* moving the file changed sync into editFile()

* code refactor + Astro Component HMR test

* chore: lint fixes

* adding a test suite for the framework-multiple example app
2022-05-23 16:56:45 +00:00
.changeset Adding E2E tests for client hydration and HMR (#3374) 2022-05-23 16:56:45 +00:00
.github Fix GitHub Issue creation link (closes #3257) (#3421) 2022-05-23 11:02:03 -05:00
.gitpod logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.vscode update prettier width (#2968) 2022-04-02 14:15:41 -06:00
assets new readme (#3237) 2022-05-03 17:06:04 -07:00
examples [ci] update lockfile (#3414) 2022-05-20 12:02:10 -05:00
packages Adding E2E tests for client hydration and HMR (#3374) 2022-05-23 16:56:45 +00:00
patches fix our weird beta release issues (#3031) 2022-04-10 18:17:39 -07:00
scripts [ci] collect stats 2022-05-23 12:02:31 +00:00
.editorconfig Use accessible indentation (#2253) 2021-12-22 16:11:05 -05:00
.eslintignore Improve GitHub Actions (#2041) 2021-11-29 15:11:15 -06:00
.eslintrc.cjs cleanup the repo, remove outdated files and folders (#2771) 2022-03-14 11:41:57 -07:00
.git-blame-ignore-revs add big reformat to git-blame-ignore-revs 2022-04-02 14:16:31 -06:00
.gitignore refactor(vercel): Build Output API v3 (#3216) 2022-05-11 15:10:38 -06:00
.gitmodules Refactor smoke tests to use submodules (#2702) 2022-03-02 16:08:42 -06:00
.gitpod.Dockerfile Fix/deno gitpod (#3213) 2022-05-03 10:56:16 -04:00
.gitpod.yml logic for opening example projects (#2811) 2022-03-16 10:24:01 -05:00
.npmrc merge next into main (#2705) 2022-03-09 15:44:26 -06:00
.nvmrc Add Migration Guide to docs (#1751) 2021-11-12 07:40:49 -05:00
.prettierignore refactor(vercel): Build Output API v3 (#3216) 2022-05-11 15:10:38 -06:00
.prettierrc.json update prettier width (#2968) 2022-04-02 14:15:41 -06:00
CODE_OF_CONDUCT.md [ci] yarn format 2021-06-24 00:27:22 +00:00
CONTRIBUTING.md Adding E2E testing with Playwright (#3349) 2022-05-15 21:47:28 +00:00
FUNDING.md format 2022-02-09 12:34:06 -08:00
FUNDING.yml Create FUNDING.md (#1137) 2021-08-17 22:39:20 -07:00
GOVERNANCE.md remove "experimental" warning from governance doc 2022-04-07 09:01:04 -07:00
LICENSE add vite to license 2022-04-24 16:42:39 -07:00
package.json Adding E2E tests for client hydration and HMR (#3374) 2022-05-23 16:56:45 +00:00
pnpm-lock.yaml Adding E2E tests for client hydration and HMR (#3374) 2022-05-23 16:56:45 +00:00
pnpm-workspace.yaml fix format (#2736) 2022-03-08 15:20:04 -08:00
README.md Broken link to Solid package (#3372) 2022-05-16 12:15:36 -04:00
STYLE_GUIDE.md Move from yarn to pnpm (#2455) 2022-03-08 15:46:11 -06:00
tsconfig.base.json Migrate to yarn monorepo (#157) 2021-04-30 16:33:35 -05:00
turbo.json add build:ci command which skips tsc (#2869) 2022-03-23 19:46:16 -05:00

Astro logo

Astro is a website build tool for the modern web —
powerful developer experience meets lightweight output.

Install

# Recommended!
npm create astro@latest

# Manual:
npm install --save-dev astro

Looking for help? Start with our Getting Started guide.

Looking for quick examples? Open a starter project right in your browser.

Documentation

Visit our offical documentation.

Support

Having trouble? Get help in the official Astro Discord.

Contributing

New contributors welcome! Check out our Contributors Guide for help getting started.

Join us on Discord to meet other maintainers. We'll help you get your first contribution in no time!

Directory

Package Release Notes
astro astro version
create-astro create-astro version
@astrojs/react astro version
@astrojs/preact astro version
@astrojs/solid-js astro version
@astrojs/svelte astro version
@astrojs/vue astro version
@astrojs/lit astro version
@astrojs/deno astro version
@astrojs/netlify astro version
@astrojs/vercel astro version
@astrojs/partytown astro version
@astrojs/sitemap astro version
@astrojs/tailwind astro version
@astrojs/turbolinks astro version

Several official projects are maintained outside of this repo:

Project Repository
@astrojs/compiler withastro/compiler
Astro Language Tools withastro/language-tools

Sponsors

Astro is generously supported by Netlify, Vercel, and several other amazing organizations.

❤️ Sponsor Astro! ❤️

Platinum Sponsors

NetlifyNetlify VercelVercel

Gold Sponsors

‹div›RIOTS ‹div›RIOTS StackUp Digital StackUp Digital

Sponsors

SentryQoddi App Platform