Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
475a6cb634 | ||
|
|
f0c59a9b6f | ||
|
|
61ec0d839e | ||
|
|
382536168b | ||
|
|
956b2f277b | ||
|
|
37bb4e9ea2 |
@@ -91,17 +91,7 @@ pnpm install
|
|||||||
| `pnpm run lint` | Run the linter to check for code style and quality issues |
|
| `pnpm run lint` | Run the linter to check for code style and quality issues |
|
||||||
| `pnpm run format` | Run the formatter to automatically fix code style issues |
|
| `pnpm run format` | Run the formatter to automatically fix code style issues |
|
||||||
| `pnpm run test:browser` | Run browser tests (only works inside the `packages/luna-charts` directory) |
|
| `pnpm run test:browser` | Run browser tests (only works inside the `packages/luna-charts` directory) |
|
||||||
|
| `pnpm run storybook` | Start the storybook documentation |
|
||||||
### Storybook
|
|
||||||
|
|
||||||
Storybook currently needs to be started from within the library package directly:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd packages/luna-charts
|
|
||||||
pnpm run storybook
|
|
||||||
```
|
|
||||||
|
|
||||||
> **Note:** Running Storybook from the repository root isn't set up yet. This is a known gap — contributions to add a root-level `pnpm --filter` script are welcome.
|
|
||||||
|
|
||||||
Component and browser tests run inside Docker (`docker-compose.test.yaml`), based on the same `Dockerfile.test` used to build the image CI tests against, to guarantee a reproducible browser environment — you don't need Playwright browsers installed locally. Locally this image is built on demand; in CI a prebuilt version of the same image is pulled directly (see [ADR-0002](./docs/src/content/docs/architecture/adr/000200-technology-stack.mdx) and the [Technology Architecture](./docs/src/content/docs/architecture/adm/technology-architecture.mdx#66-test-execution-environment) doc for details).
|
Component and browser tests run inside Docker (`docker-compose.test.yaml`), based on the same `Dockerfile.test` used to build the image CI tests against, to guarantee a reproducible browser environment — you don't need Playwright browsers installed locally. Locally this image is built on demand; in CI a prebuilt version of the same image is pulled directly (see [ADR-0002](./docs/src/content/docs/architecture/adr/000200-technology-stack.mdx) and the [Technology Architecture](./docs/src/content/docs/architecture/adm/technology-architecture.mdx#66-test-execution-environment) doc for details).
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
"changeset": "changeset",
|
"changeset": "changeset",
|
||||||
"version": "changeset version",
|
"version": "changeset version",
|
||||||
"release": "changeset publish",
|
"release": "changeset publish",
|
||||||
|
"storybook": "pnpm --filter luna-charts run storybook",
|
||||||
"test:unit": "pnpm --filter luna-charts test:unit",
|
"test:unit": "pnpm --filter luna-charts test:unit",
|
||||||
"test:component": "docker compose -f docker-compose.test.yaml up --build --abort-on-container-exit --exit-code-from test",
|
"test:component": "docker compose -f docker-compose.test.yaml up --build --abort-on-container-exit --exit-code-from test",
|
||||||
"test": "pnpm test:unit && pnpm test:component"
|
"test": "pnpm test:unit && pnpm test:component"
|
||||||
|
|||||||
Reference in New Issue
Block a user