-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
refactor: migrate telemetry tests to typescript #16358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ematipico
merged 9 commits into
withastro:main
from
ocavue-forks:ocavue-ts-test-telemetry
Apr 16, 2026
+38
−21
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3fae5f1
refactor: migrate telemetry tests to typescript
ocavue 25d4659
format
ocavue 74b12ee
remove types
ocavue 9168884
format
ocavue 0131c8f
just use any
ocavue 8d07abb
format
ocavue 5b8d093
fix typecheck
ocavue 7713858
Merge remote-tracking branch 'withastro/main' into ocavue-ts-test-tel…
ocavue db6cb18
chore: trigger ci
ocavue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "extends": "../../tsconfig.base.json", | ||
| "include": ["test/**/*.ts"], | ||
| "exclude": ["test/fixtures/**"], | ||
| "compilerOptions": { | ||
| "noEmit": true, | ||
| "allowJs": true, | ||
| "noUnusedLocals": false, | ||
| "noUnusedParameters": false, | ||
| "rewriteRelativeImportExtensions": true | ||
| }, | ||
| "references": [{ "path": "../astro/tsconfig.test.json" }] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use
telemetry?.enabledinstead?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
enabledis a TypeScript private property. The string index notationobject['privateProperty']is an escape hatch to access a private member outside the class. See the playground link below:https://www.typescriptlang.org/play/?#code/MYGwhgzhAECyCeBhcVoG8BQ1oFt4AUBXAIxAEtgAxMgUxABMAuaCAFwCcyA7Ac2i2gAHTgDcwrGrgKjxNanSYsO3HhgHAA9lzbtCwVhvYAKAJToB2VgAsyEAHR4ipCvIbQAvNABEXi9Gu2DtJkYhKu9B7evtgAvhhxGJrarFIA8sQAVjT6kVw0AO5wSCgQpolabGmZ2ayp7AByhCAgkbDiVnbsYFz0Gjim0AB80AAMdgCs0AD8VVk5zFxNIGoA9CvQqQDWNPAYeOlzrEFO5FS0DKvrWzt78Ac1ANoA5I4kp+FPALqXG9u7+9V9HVGs0psc3i5zvQftd-ndAbUGkswc9Xs4zgovmoMGtoABRdjsQzQABMAGYACwARmY+CJgho7FY8GgL2CoTkUKe0FsQhkEmg3QiWhALLAwGANCgZFIknyZACXGgoEgMCeCGQqqedlu930x35nIUML+uoRqPZsg+3xx6wJRPYpMpNOgdI0DKZLLZdJCVq5PJgwl9AqF0BFYolUogMpAcoVNiVKtQ6uKWp1AMOwORBuDRoutt+NwzNSzoLsFp9HOtQA