├── README.md ├── after ├── README.md ├── jest.config.js ├── nodemon.json ├── package-lock.json ├── package.json ├── src │ ├── app.ts │ ├── index.ts │ ├── modules │ │ └── users │ │ │ ├── domain │ │ │ ├── email.ts │ │ │ ├── firstName.ts │ │ │ ├── lastName.ts │ │ │ ├── password.ts │ │ │ └── user.ts │ │ │ ├── repos │ │ │ ├── firebaseUserRepo.ts │ │ │ ├── index.ts │ │ │ └── userRepo.ts │ │ │ ├── services │ │ │ └── usersService.ts │ │ │ ├── testObjects │ │ │ └── userRepoSpy.ts │ │ │ └── useCases │ │ │ └── createUser │ │ │ ├── createUser.feature │ │ │ ├── createUser.spec.ts │ │ │ ├── createUser.ts │ │ │ ├── createUserController.ts │ │ │ └── index.ts │ └── shared │ │ ├── core │ │ ├── guard.ts │ │ ├── result.ts │ │ └── useCase.ts │ │ ├── domain │ │ ├── entity.ts │ │ ├── identifier.ts │ │ ├── uniqueEntityID.ts │ │ └── valueObject.ts │ │ └── types │ │ └── index.ts └── tsconfig.json └── before ├── README.md ├── jest.config.js ├── nodemon.json ├── package-lock.json ├── package.json ├── src ├── app.ts ├── index.ts ├── modules │ └── users │ │ ├── domain │ │ └── user.ts │ │ ├── repos │ │ ├── firebaseUserRepo.ts │ │ └── index.ts │ │ ├── services │ │ └── usersService.ts │ │ └── useCases │ │ └── createUser │ │ └── index.ts └── shared │ ├── core │ ├── guard.ts │ ├── result.ts │ └── useCase.ts │ ├── domain │ ├── entity.ts │ ├── identifier.ts │ ├── uniqueEntityID.ts │ └── valueObject.ts │ └── types │ └── index.ts └── tsconfig.json /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/README.md -------------------------------------------------------------------------------- /after/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/README.md -------------------------------------------------------------------------------- /after/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/jest.config.js -------------------------------------------------------------------------------- /after/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/nodemon.json -------------------------------------------------------------------------------- /after/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/package-lock.json -------------------------------------------------------------------------------- /after/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/package.json -------------------------------------------------------------------------------- /after/src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/app.ts -------------------------------------------------------------------------------- /after/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/index.ts -------------------------------------------------------------------------------- /after/src/modules/users/domain/email.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/domain/email.ts -------------------------------------------------------------------------------- /after/src/modules/users/domain/firstName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/domain/firstName.ts -------------------------------------------------------------------------------- /after/src/modules/users/domain/lastName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/domain/lastName.ts -------------------------------------------------------------------------------- /after/src/modules/users/domain/password.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/domain/password.ts -------------------------------------------------------------------------------- /after/src/modules/users/domain/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/domain/user.ts -------------------------------------------------------------------------------- /after/src/modules/users/repos/firebaseUserRepo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/repos/firebaseUserRepo.ts -------------------------------------------------------------------------------- /after/src/modules/users/repos/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/repos/index.ts -------------------------------------------------------------------------------- /after/src/modules/users/repos/userRepo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/repos/userRepo.ts -------------------------------------------------------------------------------- /after/src/modules/users/services/usersService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/services/usersService.ts -------------------------------------------------------------------------------- /after/src/modules/users/testObjects/userRepoSpy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/testObjects/userRepoSpy.ts -------------------------------------------------------------------------------- /after/src/modules/users/useCases/createUser/createUser.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/useCases/createUser/createUser.feature -------------------------------------------------------------------------------- /after/src/modules/users/useCases/createUser/createUser.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/useCases/createUser/createUser.spec.ts -------------------------------------------------------------------------------- /after/src/modules/users/useCases/createUser/createUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/useCases/createUser/createUser.ts -------------------------------------------------------------------------------- /after/src/modules/users/useCases/createUser/createUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/useCases/createUser/createUserController.ts -------------------------------------------------------------------------------- /after/src/modules/users/useCases/createUser/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/modules/users/useCases/createUser/index.ts -------------------------------------------------------------------------------- /after/src/shared/core/guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/shared/core/guard.ts -------------------------------------------------------------------------------- /after/src/shared/core/result.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/shared/core/result.ts -------------------------------------------------------------------------------- /after/src/shared/core/useCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/shared/core/useCase.ts -------------------------------------------------------------------------------- /after/src/shared/domain/entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/shared/domain/entity.ts -------------------------------------------------------------------------------- /after/src/shared/domain/identifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/shared/domain/identifier.ts -------------------------------------------------------------------------------- /after/src/shared/domain/uniqueEntityID.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/shared/domain/uniqueEntityID.ts -------------------------------------------------------------------------------- /after/src/shared/domain/valueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/src/shared/domain/valueObject.ts -------------------------------------------------------------------------------- /after/src/shared/types/index.ts: -------------------------------------------------------------------------------- 1 | 2 | export type Nothing = '' -------------------------------------------------------------------------------- /after/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/after/tsconfig.json -------------------------------------------------------------------------------- /before/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/README.md -------------------------------------------------------------------------------- /before/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/jest.config.js -------------------------------------------------------------------------------- /before/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/nodemon.json -------------------------------------------------------------------------------- /before/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/package-lock.json -------------------------------------------------------------------------------- /before/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/package.json -------------------------------------------------------------------------------- /before/src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/app.ts -------------------------------------------------------------------------------- /before/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/index.ts -------------------------------------------------------------------------------- /before/src/modules/users/domain/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/modules/users/domain/user.ts -------------------------------------------------------------------------------- /before/src/modules/users/repos/firebaseUserRepo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/modules/users/repos/firebaseUserRepo.ts -------------------------------------------------------------------------------- /before/src/modules/users/repos/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/modules/users/repos/index.ts -------------------------------------------------------------------------------- /before/src/modules/users/services/usersService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/modules/users/services/usersService.ts -------------------------------------------------------------------------------- /before/src/modules/users/useCases/createUser/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/modules/users/useCases/createUser/index.ts -------------------------------------------------------------------------------- /before/src/shared/core/guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/shared/core/guard.ts -------------------------------------------------------------------------------- /before/src/shared/core/result.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/shared/core/result.ts -------------------------------------------------------------------------------- /before/src/shared/core/useCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/shared/core/useCase.ts -------------------------------------------------------------------------------- /before/src/shared/domain/entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/shared/domain/entity.ts -------------------------------------------------------------------------------- /before/src/shared/domain/identifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/shared/domain/identifier.ts -------------------------------------------------------------------------------- /before/src/shared/domain/uniqueEntityID.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/shared/domain/uniqueEntityID.ts -------------------------------------------------------------------------------- /before/src/shared/domain/valueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/src/shared/domain/valueObject.ts -------------------------------------------------------------------------------- /before/src/shared/types/index.ts: -------------------------------------------------------------------------------- 1 | 2 | export type Nothing = '' -------------------------------------------------------------------------------- /before/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stemmlerjs/how-to-test-code-reliant-on-apis/HEAD/before/tsconfig.json --------------------------------------------------------------------------------