Skip to content

Inline callsite-record implementation - #8570

Open
aleks-pro wants to merge 2 commits into
DevExpress:masterfrom
aleks-pro:master
Open

aleks-pro wants to merge 2 commits into
DevExpress:masterfrom
aleks-pro:master

Conversation

@aleks-pro

@aleks-pro aleks-pro commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Added the callsite-record package to the TestCafe repository to simplify maintenance

Vendor the verified 4.1.7 source and MIT license, replace package imports, and add rendering regression coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	package-lock.json

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the local callsite-record integration.

No open issues 🎉

What changed in this PR

This PR brings callsite-record into TestCafe’s source tree to simplify maintenance of callsite capture and error rendering.

Changes:

  • Adds the implementation, renderers, type declarations, and original MIT attribution.
  • Redirects internal imports to the local module and updates dependencies and lockfile resolutions.
  • Adds regression tests and includes the license in build output.
File Description
test/​server/​data/​test-callsite/​index.js Uses the local module in the callsite fixture.
test/​server/​data/​callsite-record/​source.js Adds source content for rendering tests.
test/​server/​callsite-record-test.js Tests capture, rendering, escaping, failures, and attribution.
src/​utils/​render-callsite-sync.js Uses local renderers.
src/​utils/​prerender-callsite.ts Uses the local callsite type.
src/​utils/​get-renderes.ts Uses local types and renderers.
src/​utils/​callsite-record/​renderers/​no-color.js Adds plain-text rendering.
src/​utils/​callsite-record/​renderers/​index.d.ts Adds renderer type declarations.
src/​utils/​callsite-record/​renderers/​html.js Adds HTML rendering with escaping.
src/​utils/​callsite-record/​renderers/​default.js Adds colored terminal rendering.
src/​utils/​callsite-record/​README.md Documents provenance and distribution.
src/​utils/​callsite-record/​LICENSE Preserves the original MIT license.
src/​utils/​callsite-record/​index.js Adds callsite capture and rendering implementation.
src/​utils/​callsite-record/​index.d.ts Adds callsite API declarations.
src/​test-run/​request/​send.ts Uses the local callsite type.
src/​test-run/​request/​create-request-options.ts Uses the local callsite type.
src/​test-run/​index.ts Uses the local callsite type.
src/​test-run/​bookmark.ts Uses the local callsite type.
src/​errors/​test-run/​render-error-template/​utils.ts Uses local error renderers.
src/​errors/​get-callsite.js Uses local capture and updates its explanatory comment.
src/​assertions/​executor.ts Uses the local callsite type.
src/​api/​test-controller/​index.d.ts References local callsite declarations.
src/​api/​test-controller/​assertion.ts Uses the local callsite type.
package.json Replaces the package dependency and adds dependency overrides.
package-lock.json Records dependency migration and resolution changes.
Gulpfile.js Copies the callsite license into build output.

Review effort: Balanced

This branch was successfully deployed

1 active deployment
CI — 9ab98990 Deployed Nov 6, 2026 by aleks-pro via request-deploy #5073
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