Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
fix: enable skipLibCheck to handle conflict between jest and mocha :(
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorin committed Dec 13, 2021
1 parent da1384a commit 263a504
Show file tree
Hide file tree
Showing 11 changed files with 19,571 additions and 4,124 deletions.
19 changes: 18 additions & 1 deletion book/inversion/hexagonal_testing.md
Expand Up @@ -39,5 +39,22 @@ An implementation of the testing model is provided for Jest.
From the provider point of view, the suites are executed using the JestTestSuiteExecutorBuilder.

```typescript
{{#include ../../packages/ceb-book-samples/src/inversion/hexagonal_testing-jest.ts}}
import { JestTestSuiteExecutorBuilder } from "@tmorin/ceb-inversion-testing-jest"
import { OnlyConfigureModule } from "@tmorin/ceb-inversion-core"
import { SuiteA } from "./hexagonal_testing-suite"

describe("ToEmphasize Adapter", function () {
JestTestSuiteExecutorBuilder.get(SuiteA)
.configure((containerBuilder) => {
containerBuilder.module(
OnlyConfigureModule.create(async function () {
this.registry.registerValue("ToEmphasize", (value: string) =>
value.toUpperCase()
)
})
)
})
.build()
.execute()
})
```

0 comments on commit 263a504

Please sign in to comment.