Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b463dd4

Browse files
committedOct 10, 2024
remove last code hints of "profiler"
1 parent 14a87fa commit b463dd4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎src/jest/ProfiledComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const toRerender: MatcherFunction<[options?: NextRenderOptions]> =
1414
const _stream = actual as RenderStream<any> | Assertable;
1515
const stream =
1616
assertableSymbol in _stream ? _stream[assertableSymbol] : _stream;
17-
const hint = this.utils.matcherHint("toRerender", "ProfiledComponent", "");
17+
const hint = this.utils.matcherHint("toRerender");
1818
let pass = true;
1919
try {
2020
await stream.peekRender({ timeout: 100, ...options });

‎src/profile/Render.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ export type SyncScreen = {
3939

4040
export interface Render<Snapshot> extends BaseRender {
4141
/**
42-
* The snapshot, as returned by the `takeSnapshot` option of `profile`.
43-
* (If using `profileHook`, this is the return value of the hook.)
42+
* The snapshot, as returned by the `takeSnapshot` option of `createRenderStream`.
4443
*/
4544
snapshot: Snapshot;
4645
/**
4746
* A DOM snapshot of the rendered component, if the `snapshotDOM`
48-
* option of `profile` was enabled.
47+
* option of `createRenderStream` was enabled.
4948
*/
5049
readonly domSnapshot: HTMLElement;
5150
/**

0 commit comments

Comments
 (0)
Please sign in to comment.