playwright/tests/components/ct-solid
Dmitry Gozman f17d345ac9
fix(ct): support empty fragments (#17475)
Currently, we ues `#root` vs `#root > *` selector for component roots
depending on the number of root children. This heuristic detects
fragments that render multiple elements inside the root.

However, this does not work with empty fragments that do not render
anything.

The fix is to make the `#root >> control=component` selector that would
dynamically detect the root. This supports empty fragments and also
allows for dynamic updates of the fragments.
2022-09-21 15:12:18 -07:00
..
playwright feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00
src fix(ct): support empty fragments (#17475) 2022-09-21 15:12:18 -07:00
.gitignore feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00
index.html feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00
package.json feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00
playwright.config.ts feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00
README.md feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00
tsconfig.json feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00
vite.config.ts feat(ct): initial solid (#16703) 2022-08-23 14:08:53 -07:00

Usage

Those templates dependencies are maintained via pnpm via pnpm up -Lri.

This is the reason you see a pnpm-lock.yaml. That being said, any package manager will work. This file can be safely be removed once you clone a template.

$ npm install # or pnpm install or yarn install

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

npm dev or npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)