CodeChain-io / CodeChain-io/codechain-sdk-js
Resolve the warnings from TS diagnostics during the tests
未關閉
test
- 主要語言
- TypeScript
- 星號
- 26
- 分支
- 14
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Currently, it doesn't make the tests fail because of `warnOnly` flag in the `jest.config.js`.
```
"ts-jest": {
diagnostics: {
warnOnly: true
}
}
```
Warning example
```
ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):
src/key/__test__/MemoryKeyStore.spec.ts:60:46 - error TS2345: Argument of type 'string | null' is not assignable to parameter of type 'string'.
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 jest.config.js 開始,執行測試套件以收集所有 TypeScript 診斷資訊。檢查第 60 行的 src/key/__test__/MemoryKeyStore.spec.ts 以及報告的其他所有位置。當測試在沒有 TypeScript 診斷警告的情況下執行,同時維持通過狀態時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- typescript
- 領域
- testing
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100