Skip to content

Instantly share code, notes, and snippets.

View samolabams's full-sized avatar

Sam Olabamiji samolabams

  • Lagos, Nigeria
View GitHub Profile
@samolabams
samolabams / jest-config
Created April 4, 2022 14:53
Jest config
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'/node_modules/',
'/__fixtures__/',
'/__tests__/',
'/(__)?mock(s__)?/',
'/__jest__/',
'.?.min.js',
export type Response<T, E> = Ok<T, E> | Err<T, E>;
class Ok<T, E> {
readonly value: T;
constructor(value: T) {
this.value = value;
}
isOk(): this is Ok<T, E> {