Skip to content

TS Test Conversion - #222

Open
Michiel-VandeVelde wants to merge 16 commits into
LinkedDataFragments:masterfrom
Michiel-VandeVelde:TS-test-conversion
Open

TS Test Conversion#222
Michiel-VandeVelde wants to merge 16 commits into
LinkedDataFragments:masterfrom
Michiel-VandeVelde:TS-test-conversion

Conversation

@Michiel-VandeVelde

Copy link
Copy Markdown
Contributor

No description provided.

@Michiel-VandeVelde Michiel-VandeVelde changed the title Ts Test Conversion TS Test Conversion Sep 1, 2026

@jitsedesmet jitsedesmet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

First round of comments/ opinions :)

Comment thread package.json
Comment thread test/test-helpers.ts Outdated
Comment thread test/test-helpers.ts Outdated
Comment thread test/test-helpers.ts Outdated
Comment thread test/test-helpers.ts Outdated
Comment thread .github/workflows/ci.yml Outdated
Comment thread packages/core/test/controllers/AssetsController-test.ts Outdated
Comment thread packages/core/test/controllers/AssetsController-test.ts Outdated
Comment thread test/test-helpers.ts
Comment thread packages/core/test/controllers/AssetsController-test.ts Outdated
…op InstanceType

- Fold typecheck into postinstall, drop separate CI step (per review)
- Migrate controller tests off real ports to light-my-request injection,
  keep listen() for LinkedDataFragmentsServer-test.ts (relies on response
  'error' events as a recoverable signal, incompatible with light-my-request)
- Make DummyServer a class exposing next/error directly, drop
  SpiedController/Partial workaround
- Replace InstanceType<typeof X> & Partial<SpiedController> patterns with
  direct class imports across controller test files
- Remove unused supertest/@types/supertest dependency
…ping, narrow HttpResponse

- Add Router interface to core/lib/types.ts, have DatasourceRouter, PageRouter
  and QuadPatternRouter implement it explicitly instead of each router-consuming
  file declaring its own local duck-typed interface
- Widen RouterRequest.url.pathname to string | null, matching Node's own
  url.parse()/UrlObject convention, removing the need for callers to coerce
  null to undefined
- Apply reviewer's suggested { url: parsed } simplification in test-helpers.ts,
  now unblocked by the pathname widening above
- Make test-helpers.ts's HttpResponse extend IncomingMessage instead of
  Readable, mirroring the existing StreamCapture/ServerResponse pattern
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.

3 participants