Skip to content

test: Improve workspace dir handling - #8613

Merged
mydea merged 1 commit into
developfrom
fn/integration-test-dirs
Jul 24, 2023
Merged

test: Improve workspace dir handling#8613
mydea merged 1 commit into
developfrom
fn/integration-test-dirs

Conversation

@mydea

@mydea mydea commented Jul 24, 2023

Copy link
Copy Markdown
Member

Instead of looking up folders in package, fetch the packages from the root package.json. This way, if you e.g. have empty folders or similar in your package/ dir, it will not fail.

I notice this sometimes when working with new packages or similar, and switching branches, you may have leftover empty directories in packages/, which leads to integration tests failing unless you make sure to delete the directories.

Instead of looking up folders in `package`, fetch the packages from the root package.json. This way, if you e.g. have empty folders or similar in your `package/` dir, it will not fail.
@mydea
mydea requested review from Lms24 and lforst July 24, 2023 09:25
@mydea mydea self-assigned this Jul 24, 2023
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.99 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 69.25 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.33 KB (-0.02% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 60.48 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.95 KB (-0.01% 🔽)
@sentry/browser - Webpack (minified) 71.63 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.96 KB (-0.01% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 50.83 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.37 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.24 KB (0%)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.56 KB (0%)
@sentry/replay - Webpack (gzipped + minified) 43.33 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.73 KB (-0.01% 🔽)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 62 KB (-0.01% 🔽)

@mydea
mydea merged commit 511ba83 into develop Jul 24, 2023
@mydea
mydea deleted the fn/integration-test-dirs branch July 24, 2023 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants