Skip to content

test: run shared suites with each sync adapter - #80

Merged
mcg-web merged 3 commits into
overblog:masterfrom
simPod:test/upstream-adapter-matrix
Aug 18, 2026
Merged

test: run shared suites with each sync adapter#80
mcg-web merged 3 commits into
overblog:masterfrom
simPod:test/upstream-adapter-matrix

Conversation

@simPod

@simPod simPod commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Run the shared DataLoader and API-abuse suites with React and Webonyx adapters.
  • Keep common behavior in abstract *TestCase suites and concrete adapter suites final.
  • Keep loader-free static await cases in the React suite because Webonyx needs an adapter instance to run its queue.
  • Replace React-specific assertions with adapter contract assertions.
  • Reset retained loader instances between tests so adapter state cannot leak across the matrix.

Motivation

The main behavior suites only exercised the React adapter. Running the shared contract through each synchronous adapter exposes adapter-specific behavior without duplicating test cases.

simPod added 3 commits August 17, 2026 21:18
Keep the shared DataLoader behavior tests in one abstract suite and run them through explicit React and Webonyx test classes. Reset retained DataLoader instances between cases so adapter-specific state cannot leak across the matrix.
@mcg-web

mcg-web commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Thank you @simPod !

@mcg-web
mcg-web merged commit 9ddd505 into overblog:master Aug 18, 2026
9 checks passed
@simPod
simPod deleted the test/upstream-adapter-matrix branch August 18, 2026 06:32
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