You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure to add a `test:build` and `test:assert` command to the new app's `package.json` file.
124
111
125
-
### The `.npmrc` File
126
-
127
-
Every test application needs an `.npmrc` file (as shown above) to tell pnpm to fetch `@sentry/*` and `@sentry-internal/*` packages from the local Verdaccio registry. Without it, pnpm will install from the public npm registry and your local changes won't be tested - this is one of the most common causes of confusing test failures.
128
-
129
-
To verify packages are being installed from Verdaccio, check the version in `node_modules/@sentry/*/package.json`. If it shows something like `0.0.0-pr.12345`, Verdaccio is working. If it shows a released version (e.g., `8.0.0`), the `.npmrc` is missing or incorrect.
112
+
Sentry packages are automatically resolved to the local build via pnpm overrides injected at test time, so no manual
113
+
registry configuration is needed.
130
114
131
115
## Troubleshooting
132
116
133
117
### Common Issues
134
118
135
119
#### Tests fail with "Cannot find module '@sentry/...'" or use wrong package version
136
120
137
-
1.Verify the test application has an `.npmrc` file (see above)
0 commit comments