Skip to content

ref(tests): Add TestEnv class to Node integration tests. #5633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 30, 2022

Conversation

onurtemizkan
Copy link
Collaborator

Following up: #5579 and #5596
Ref: #5579 (review)

Refactored Node integration test helpers, to use a TestEnv instance for each test. This will help avoid explicitly passing server and url back and forth.

Remix server-side tests also extend the TestEnv class to implement Remix-specific initialization logic.

@onurtemizkan onurtemizkan self-assigned this Aug 26, 2022
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.41 KB (+0.03% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 60.06 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 17.98 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified) 52.92 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 19.77 KB (0%)
@sentry/browser - Webpack (minified) 64.31 KB (0%)
@sentry/react - Webpack (gzipped + minified) 19.79 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 44.7 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 25.9 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.27 KB (+0.01% 🔺)

@AbhiPrasad
Copy link
Member

We'll need to rebase this on top of #5512 - otherwise looks great to me!

@onurtemizkan onurtemizkan force-pushed the onur/node-int-tests-testenv-class branch from 5b36b58 to f9a6e0b Compare August 30, 2022 08:43
@onurtemizkan
Copy link
Collaborator Author

@AbhiPrasad - rebased the PR 👍

@AbhiPrasad AbhiPrasad merged commit 232964c into master Aug 30, 2022
@AbhiPrasad AbhiPrasad deleted the onur/node-int-tests-testenv-class branch August 30, 2022 15:38
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