Skip to content

Commit d23f4ff

Browse files
authored
docs: clarify required build before test (#7389)
1 parent a118a1d commit d23f4ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CONTRIBUTING.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ To develop and test the core `vite` package:
1010

1111
1. Run `pnpm i` in Vite's root folder
1212

13-
2. Go to `packages/vite` and run `pnpm run dev`. This starts `rollup` in watch mode.
13+
2. Run `pnpm run build` in Vite's root folder.
14+
15+
3. If you are developing Vite itself, you can go to `packages/vite` and run `pnpm run dev` to automatically rebuild Vite whenever you change its code.
1416

1517
You can alternatively use [Vite.js Docker Dev](https://github.com/nystudio107/vitejs-docker-dev) for a containerized Docker setup for Vite.js development.
1618

@@ -67,7 +69,7 @@ And re-run `pnpm install` to link the package.
6769

6870
Each package under `packages/playground/` contains a `__tests__` directory. The tests are run using [Jest](https://jestjs.io/) + [Playwright](https://playwright.dev/) with custom integrations to make writing tests simple. The detailed setup is inside `jest.config.js` and `scripts/jest*` files.
6971

70-
Each test can be run under either dev server mode or build mode.
72+
Each test can be run under either dev server mode or build mode. Make sure that [Vite has been built](#repo-setup).
7173

7274
- `pnpm test` by default runs every test in both serve and build mode.
7375

0 commit comments

Comments
 (0)