[dts-lint] Support testing multiple times with different compiler options
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
首先检查 dts-lint 现有对 tsconfig.json、编译器选项和测试执行的处理方式。将提议的 solution 风格引用配置与专用的 dts-lint 配置进行比较,然后确定如何选择和报告多个环境。完成标准是同一测试集在有 lib-dom 和没有 lib-dom 的情况下都能成功运行。
由索引模型根据 Issue 内容生成。
描述
I just created this hacky workaround to a problem that I'm not sure a lot of other users have, but I figured it was worth capturing something here.
The basic problem is that @types/node needs to behave differently depending on whether or not the consuming project includes lib-dom. I'd like to write one set of tests that runs with the option lib: ['dom'] and one without. The hacky workaround is to create a tsX.Y "version" folder, which just re-uses code and tests from another version, but has its own tsconfig file. It would be better if dts-lint supported some way of specifying multiple environments.
I don't have a specific implementation in mind. Maybe if it finds a "solution style" tsconfig.json, it would run tests once for each referenced tsconfig? Maybe dts-lint gets its own config file where I can specify an array of compiler options to change across multiple runs?
- 主要语言
- TypeScript
- 星标
- 422
- 派生
- 238
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 8
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/DefinitelyTyped-tools 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 66/100
microsoft/DefinitelyTyped-tools#1324 · 8 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 32/100
microsoft/DefinitelyTyped-tools#1230 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
microsoft/DefinitelyTyped-tools#1229 ·
维护者通常 1 天内回复
-
mergebot staleness comments do not respect tooManyOwners可能已有人在做 @copilot-swe-agent 于 323 天前认领。 未关闭
microsoft/DefinitelyTyped-tools#1218 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 45/100
microsoft/DefinitelyTyped-tools#1211 · 1 条评论 ·
维护者通常 1 天内回复
查看 microsoft/DefinitelyTyped-tools 的全部 Issue
相似的 Issue
-
ble-needs-fable-review bug mobile priority:P2
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
ColeMurray/background-agents#2305 ·
维护者通常 1 天内回复
-
bug from-studio
难度 2/5 1-3 小时 新手友好度 63/100
esengine/DeepSeek-Reasonix#12355 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
oblien/openship#1086 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复