Skip to content

Add unit tests for tsjs script source and tag generation #450

@prk-Jr

Description

@prk-Jr

Description

crates/common/src/tsjs.rs builds the injected TS/JS script URL and <script> tag used in publisher HTML responses, but the formatting behavior is untested.

Done when

  • Add unit tests for tsjs_script_src URL structure, hash placement, and module query string formatting.
  • Add unit tests for tsjs_script_tag output attributes and valid single-tag structure.
  • Cover realistic IntegrationRegistry input so enabled modules appear in the generated output.

Affected area

  • HTML processing / JS injection

Additional context

Source: test_gap.md, section Script Tag Generation.
Parent issue: #396

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions