摘要:
Code: import {UnauthorizedError} from 'express-jwt' function errorMiddleware(error, req, res, next) { if (res.headersSent) { next(error) } else if (er 阅读全文
摘要:
Jest has a test-generation feature built-in called test.each which is great, but I don’t particularly like it’s API. Instead, we’re going to use an op 阅读全文
摘要:
One of the most crucial things you can do when writing tests is ensuring that the error message explains the problem as clearly as possible so it can 阅读全文
摘要:
For example, you have an object `A`, you want to extend it and modify some prop; then create a new interface B: export interface B extends Omit<A, 'x' 阅读全文
摘要:
SAA Here's a quick cheat-sheet to remember all these services: EMR (Elastic Map Reduce): Big Data / Hadoop / Spark clusters on AWS, deployed on EC2 fo 阅读全文