-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ref(replay): Split replay integration & container class #6407
Conversation
size-limit report 📦
|
7f83c10
to
e38b69b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the change because a) single responsibility is always good and b) (as we previously discussed) it gets us one step closer to converting the replay logic into a functional structure. We can start thinking about this if we have the time after we finish our other points on the roadmap. Added a point to #5326.
describe('integration settings', () => { | ||
describe('blockAllMedia', () => { | ||
it('sets the correct configuration when `blockAllMedia` is disabled', async () => { | ||
const { replay } = await mockSdk({ replayOptions: { blockAllMedia: false } }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change (never knew that the previous syntax actually works 🤔 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we should prob. do that everywhere! But just stumbled over this because of some other refactoring made necessary here 😅
e38b69b
to
cf0604f
Compare
Note: I also added an entry to the MIGRATION docs. |
cf0604f
to
6a99d9d
Compare
09c1797
to
23c964d
Compare
23c964d
to
e643015
Compare
A part of #6406, this splits up the main
index.ts
file of replay into two parts: