Skip to content

Project easy studio#1

Merged
deliciousmonster merged 2 commits into
masterfrom
project-easy-studio
Feb 3, 2020
Merged

Project easy studio#1
deliciousmonster merged 2 commits into
masterfrom
project-easy-studio

Conversation

@deliciousmonster

Copy link
Copy Markdown
Contributor

No description provided.

@deliciousmonster
deliciousmonster merged commit 443181a into master Feb 3, 2020
@deliciousmonster
deliciousmonster deleted the project-easy-studio branch February 3, 2020 17:25
kylebernhardy added a commit that referenced this pull request Jul 15, 2026
…net detection

Addresses kriszyp + dawsontoth review feedback on #1511.

registry-smoke.test.tsx:
- Fix dead SVG selector: assert `svg` directly instead of
  `.recharts-responsive-container, svg` (the wrapper div is an ancestor of the
  svg and always matched first, so the svg branch never evaluated). The
  analytics setup forces 800×600 so recharts genuinely draws (kriszyp).
- Make `.spec` access consistent: `specRegistry[metric].spec` non-optionally in
  syntheticRecords, matching MUST_RENDER_CHART (spec is required on
  SpecRegistryEntry) (kriszyp nit).
- Add a derived-registry no-crash tier iterating Object.keys(derivedRegistry).
  MetricRenderer dispatches derivedRegistry[metric] before specRegistry, so the
  five derived metrics (mqtt-traffic-sent/received, request-rate, error-rate,
  transaction-log-growth) previously had zero coverage. Fed synthetic records
  carrying the raw source columns each recompute reads directly (kriszyp #1).
- Add dedicated real-render cases for the non-cartesian primitives: heatmap
  (replication-latency) asserts a `[role="grid"]` with gridcells from a 2×2
  source/destination matrix; small-multiples (resource-usage) asserts multiple
  sub-charts. Both assert real DOM, not their empty state (dawson #1521).

failOnRenderPhaseUpdate.ts:
- Add a tripwire-net self-check: capture the installed wrapper in beforeEach and,
  in afterEach, detect + defensively restore when a test replaced console.error
  and left it replaced (net disabled). Severity is a loud console.warn naming the
  test, not a hard failure, so the tests that legitimately mock console.error
  keep passing. Refactored into exported installTripwire / detectDisabledNet and
  added failOnRenderPhaseUpdate.test.ts proving the detection fires (dawson #1520).
- Document the DEV-mode dependency: the net relies on React's dev-build warning
  and silently goes green under a production React build (dawson #3 / kriszyp #3).
- Simplify the already-failed path to call console.error directly (restored two
  lines up) instead of original?.() (kriszyp nit).

queryClient.test.ts:
- The new self-check surfaced that this suite used mockReset() (leaves a
  swallowing spy installed at teardown); switch to mockRestore() so the tripwire
  wrapper is back in place between tests.

Fixes #1520
Fixes #1521
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UZEaYdKFXuQw2Hf6XpPdEV
dawsontoth pushed a commit that referenced this pull request Jul 22, 2026
…net detection

Addresses kriszyp + dawsontoth review feedback on #1511.

registry-smoke.test.tsx:
- Fix dead SVG selector: assert `svg` directly instead of
  `.recharts-responsive-container, svg` (the wrapper div is an ancestor of the
  svg and always matched first, so the svg branch never evaluated). The
  analytics setup forces 800×600 so recharts genuinely draws (kriszyp).
- Make `.spec` access consistent: `specRegistry[metric].spec` non-optionally in
  syntheticRecords, matching MUST_RENDER_CHART (spec is required on
  SpecRegistryEntry) (kriszyp nit).
- Add a derived-registry no-crash tier iterating Object.keys(derivedRegistry).
  MetricRenderer dispatches derivedRegistry[metric] before specRegistry, so the
  five derived metrics (mqtt-traffic-sent/received, request-rate, error-rate,
  transaction-log-growth) previously had zero coverage. Fed synthetic records
  carrying the raw source columns each recompute reads directly (kriszyp #1).
- Add dedicated real-render cases for the non-cartesian primitives: heatmap
  (replication-latency) asserts a `[role="grid"]` with gridcells from a 2×2
  source/destination matrix; small-multiples (resource-usage) asserts multiple
  sub-charts. Both assert real DOM, not their empty state (dawson #1521).

failOnRenderPhaseUpdate.ts:
- Add a tripwire-net self-check: capture the installed wrapper in beforeEach and,
  in afterEach, detect + defensively restore when a test replaced console.error
  and left it replaced (net disabled). Severity is a loud console.warn naming the
  test, not a hard failure, so the tests that legitimately mock console.error
  keep passing. Refactored into exported installTripwire / detectDisabledNet and
  added failOnRenderPhaseUpdate.test.ts proving the detection fires (dawson #1520).
- Document the DEV-mode dependency: the net relies on React's dev-build warning
  and silently goes green under a production React build (dawson #3 / kriszyp #3).
- Simplify the already-failed path to call console.error directly (restored two
  lines up) instead of original?.() (kriszyp nit).

queryClient.test.ts:
- The new self-check surfaced that this suite used mockReset() (leaves a
  swallowing spy installed at teardown); switch to mockRestore() so the tripwire
  wrapper is back in place between tests.

Fixes #1520
Fixes #1521
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UZEaYdKFXuQw2Hf6XpPdEV
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.

1 participant