rhys-saldanha / tech-test-ts

A brief exercise in Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

The goal of this repo is to test the developer's basic knowledge of Typescript, Promises and testing.

Open ./src/userService.ts and implement the getUsersWithPopularPosts function such that:

  • it returns users from the provided dataService as an array wrapped in a Promise
  • ensure that each user has a "posts" field that contains all posts by that user
  • the list of users should only include those who have written a "popular" post (any single post with 10 or more comments)

Stretch goal

Implement unit tests for the getUsersWithPopularPosts method.

About

A brief exercise in Typescript


Languages

Language:TypeScript 100.0%