Skip to content

Commit

Permalink
add exercises and solution in typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ythirion committed Jan 30, 2024
1 parent ee82360 commit 3cc9e8b
Show file tree
Hide file tree
Showing 333 changed files with 187,777 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,17 @@ given concept:

Here are the libraries we use in the different days per supported language:

| Topic | java | C# | kotlin |
|------------------------|------------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
| Test framework | [junit](https://junit.org/junit5/) | [xUnit](https://xunit.net/) | [Kotest](https://kotest.io/) |
| Fluent assertions | [assertJ](https://joel-costigliola.github.io/assertj/) | [FluentAssertions](https://fluentassertions.com/) | Native `kotest` assertions |
| Mocking | [mockito](https://site.mockito.org/) | [NSubstitute](https://nsubstitute.github.io/) | [mockk](https://mockk.io/) |
| Approval testing | [approvalTests](https://github.com/approvals/approvaltests.java) | [Verify.xUnit](https://github.com/VerifyTests/Verify) | [approvalTests](https://github.com/approvals/approvaltests.java) |
| Property-Based testing | [vavr-test](https://github.com/vavr-io/vavr-test) | [FSCheck](https://fscheck.github.io/FsCheck/) | [kotest-property](https://kotest.io/docs/proptest/property-based-testing.html) |
| Fake data generator | [instancio](https://www.instancio.org/) | [Bogus](https://github.com/bchavez/Bogus) | Not used |
| Architecture tests | [archunit](https://www.archunit.org/) | [TngTech.ArchUnitNET.xUnit](https://archunitnet.readthedocs.io/en/latest/) | [archunit](https://www.archunit.org/) |
| Functional library | [vavr](https://www.vavr.io/) | [LanguageExt.Core](https://github.com/louthy/language-ext) | [arrow-kt](https://arrow-kt.io/) |
| Functional assertions | [assertj-vavr](https://github.com/assertj/assertj-vavr) | [FluentAssertions.LanguageExt](https://www.nuget.org/packages/FluentAssertions.LanguageExt) | [kotest-extensions-arrow](https://github.com/kotest/kotest-extensions-arrow#kotest-extensions-arrow) |
| Topic | java | C# | kotlin | typescript |
|------------------------|------------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|------------------------------------------|
| Test framework | [junit](https://junit.org/junit5/) | [xUnit](https://xunit.net/) | [Kotest](https://kotest.io/) | [jest](https://jestjs.io/) |
| Fluent assertions | [assertJ](https://joel-costigliola.github.io/assertj/) | [FluentAssertions](https://fluentassertions.com/) | Native `kotest` assertions | Native `jest` assertions |
| Mocking | [mockito](https://site.mockito.org/) | [NSubstitute](https://nsubstitute.github.io/) | [mockk](https://mockk.io/) | Native `jest` mocking features |
| Approval testing | [approvalTests](https://github.com/approvals/approvaltests.java) | [Verify.xUnit](https://github.com/VerifyTests/Verify) | [approvalTests](https://github.com/approvals/approvaltests.java) | [approvals](http://approvaltests.com) |
| Property-Based testing | [vavr-test](https://github.com/vavr-io/vavr-test) | [FSCheck](https://fscheck.github.io/FsCheck/) | [kotest-property](https://kotest.io/docs/proptest/property-based-testing.html) | [fast-check](https://fast-check.dev/) |
| Fake data generator | [instancio](https://www.instancio.org/) | [Bogus](https://github.com/bchavez/Bogus) | Not used | [fakerjs](https://fakerjs.dev/) |
| Architecture tests | [archunit](https://www.archunit.org/) | [TngTech.ArchUnitNET.xUnit](https://archunitnet.readthedocs.io/en/latest/) | [archunit](https://www.archunit.org/) | N/A |
| Functional library | [vavr](https://www.vavr.io/) | [LanguageExt.Core](https://github.com/louthy/language-ext) | [arrow-kt](https://arrow-kt.io/) | [fp-ts](https://gcanti.github.io/fp-ts/) |
| Functional assertions | [assertj-vavr](https://github.com/assertj/assertj-vavr) | [FluentAssertions.LanguageExt](https://www.nuget.org/packages/FluentAssertions.LanguageExt) | [kotest-extensions-arrow](https://github.com/kotest/kotest-extensions-arrow#kotest-extensions-arrow) | Native `jest` assertions |

## Contributors

Expand Down
6 changes: 6 additions & 0 deletions exercise/ts/day01/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
transform: {'^.+\\.ts?$': 'ts-jest'},
testEnvironment: 'node',
testRegex: '/tests/.*\\.(test|spec)?\\.(ts|tsx)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
};
Loading

0 comments on commit 3cc9e8b

Please sign in to comment.