Skip to content

test(replay): Create test stubs for all replay frames and frame-data #50246

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 10 commits into from
Jun 7, 2023

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Jun 2, 2023

No description provided.

@ryan953 ryan953 requested a review from a team as a code owner June 2, 2023 17:40
@ryan953 ryan953 requested a review from billyvg June 2, 2023 17:40
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 2, 2023
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from the sdk, don't need to commit it because we can wait for an sdk release

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is copied from the sdk, don't need to commit it because we can wait for an sdk release

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thinking about moving types into utils/ instead of leaving it in views/`

Some will need to move from the old file into here, and others will be replaced outright with these.

Comment on lines 134 to 146
request?: {
_meta?: string[];
body?: unknown;
headers?: Record<string, string>;
size?: number;
};
requestBodySize?: number;
response?: {
_meta?: string[];
body?: unknown;
headers?: Record<string, string>;
size?: number;
};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request and response are added here. They're not in the SDK yet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of all the files added in this folder, this is the only one that needs to stick around. It'll be updated to import from the sdk.

See getsentry/sentry-javascript#8284

@ryan953 ryan953 force-pushed the ryan953/ref-replay-test-mocks branch from b627b38 to e2afed1 Compare June 7, 2023 04:51
@ryan953 ryan953 merged commit 321ba82 into master Jun 7, 2023
@ryan953 ryan953 deleted the ryan953/ref-replay-test-mocks branch June 7, 2023 20:36
@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants