GeezerVison is showing github.com — Clean build output before running test · getsentry/sentry-javascript@fe6711f
File tree
Expand file treeCollapse file tree
Open diff view settings
dev-packages/e2e-tests/test-applications/solidstart
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: dev-packages/e2e-tests/test-applications/solidstart/package.json +7-2Lines changed: 7 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 | "version": "0.0.0", |
4 | 4 | "scripts": { |
5 | 5 | "clean": "pnpx rimraf node_modules pnpm-lock.yaml .vinxi .output", |
| 6 | + "clean:build": "pnpx rimraf .vinxi .output", |
6 | 7 | "dev": "NODE_OPTIONS='--import ./src/instrument.server.mjs' vinxi dev", |
7 | 8 | "build": "vinxi build", |
8 | 9 | "//": [ |
9 | 10 | "We are using `vinxi dev` to start the server because `vinxi start` is experimental and ", |
10 | 11 | "doesn't correctly resolve modules for @sentry/solidstart/solidrouter.", |
11 | | - "This is currently not an issue outside of our repo. See: https://github.com/nksaraf/vinxi/issues/177" |
| 12 | + "This is currently not an issue outside of our repo. See: https://github.com/nksaraf/vinxi/issues/177", |
| 13 | + "We run the build command to ensure building succeeds. However, keeping", |
| 14 | + "build output around slows down the vite dev server when using `@sentry/vite-plugin` so we clear it out", |
| 15 | + "before actually running the tests.", |
| 16 | + "Cleaning the build output should be removed once we can use `vinxi start`." |
12 | 17 | ], |
13 | | - "preview": "HOST=localhost PORT=3030 NODE_OPTIONS='--import ./src/instrument.server.mjs' vinxi dev", |
| 18 | + "preview": "pnpm clean:build && HOST=localhost PORT=3030 NODE_OPTIONS='--import ./src/instrument.server.mjs' vinxi dev", |
14 | 19 | "start": "HOST=localhost PORT=3030 NODE_OPTIONS='--import ./src/instrument.server.mjs' vinxi start", |
15 | 20 | "test:prod": "TEST_ENV=production playwright test", |
16 | 21 | "test:build": "pnpm install && npx playwright install && pnpm build", |
|