Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ jobs:
vite run lint
vite run type
vite run test -- --coverage
- name: vite-plugin-react
node-version: 22
command: |
vite run format
vite run lint -- --fix
# TODO(fengmk2): run all builds and tests after tsdown version upgrade
vite run @vitejs/plugin-rsc#build
vite run @vitejs/plugin-rsc#test

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
26 changes: 26 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,29 @@ vite dev # runs dev script from package.json

- Run `cargo test` to execute all tests
- You never need to run `pnpm install` in the test fixtures dir, vite-plus should able to load and parse the workspace without `pnpm install`.

## Build

- Run `pnpm bootstrap-cli` from the project root to build all packages and install the global CLI
- This builds all `@voidzero-dev/*` packages
- Compiles the Rust NAPI bindings
- Installs the CLI globally via npm

## Snap Tests

Snap tests are located in `packages/global/snap-tests/`. Each test case is a directory containing:

- `package.json` - Package configuration for the test
- `steps.json` - Commands to run and environment variables
- `src/` - Source files for the test
- `snap.txt` - Expected output (generated/updated by running the test)

```bash
# Run all snap tests
pnpm -F @voidzero-dev/global snap-test

# Run a specific snap test by name filter
pnpm -F @voidzero-dev/global snap-test migration-skip-vite-peer-dependency
```

The snap test will automatically generate/update the `snap.txt` file with the command outputs.
Loading
Loading