editor-js / document-model

❗️WIP❗️
Apache License 2.0
10 stars 2 forks source link

Add IoCContainer & ToolsRegistry #37

Closed gohabereg closed 11 months ago

gohabereg commented 11 months ago

resolves #35

github-actions[bot] commented 11 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 100% 407/407
🟒 Branches
99.02% (+0.04% πŸ”Ό)
101/102
🟒 Functions
99.14% (-0.86% πŸ”»)
115/116
🟒 Lines 100% 388/388
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------ | :--------- | :------- | :-------- | :---- | | 🟒 | IoC/index.ts | 100% | 100% | 100% | 100% | | 🟒 | IoC/Container.ts | 100% | 100% | 50% | 100% | | 🟒 | IoC/tokens.ts | 100% | 100% | 100% | 100% | | 🟒 | tools/index.ts | 100% | 100% | 100% | 100% | | 🟒 |
`...` / ToolsRegistry.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / index.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / BlockDataType.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / BlockToolName.ts
| 100% | 100% | 100% | 100% | | 🟒 | entities/index.ts | 100% | 100% | 100% | 100% |

Test suite run success

252 tests passing in 14 suites.

Report generated by πŸ§ͺjest coverage report action from a12279aaaf76dea134e90ee135e981a974a4ff24

github-actions[bot] commented 11 months ago

βœ… Mutation testing passed

Report: https://dashboard.stryker-mutator.io/reports/github.com/editor-js/document-model/PR-37

Mutated files
src/IoC/Container.ts
src/IoC/index.ts
src/IoC/tokens.ts
src/entities/BlockNode/types/BlockToolName.ts
src/entities/index.ts
src/tools/ToolsRegistry.ts
src/tools/index.ts
src/tools/types/BlockDataType.ts
src/tools/types/BlockToolConstructable.ts
src/tools/types/BlockToolDataScheme.ts
src/tools/types/InlineToolConstructable.ts
src/tools/types/index.ts
src/entities/BlockNode/index.ts
src/entities/BlockNode/types/BlockNodeConstructorParameters.ts
src/entities/BlockNode/types/index.ts
src/entities/EditorDocument/index.ts
src/entities/EditorDocument/types/EditorDocumentConstructorParameters.ts