goldstack
ts-jest
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
goldstack
-
Death by Cloud or How to Build Brittle Systems
Infrastructure Complexity: Serverless computing emerged as a simplified approach to application development, but the infrastructure it requires can be unexpectedly complex. Tasks like setting up an API gateway with Lambdas can result in extensive configuration, increasing brittleness and the learning curve for developers.
-
Upgrading to Yarn 4
I completed the upgrade and released this in version 0.5.0 of Goldstack.
-
esbuild Ignore With Comments Plugin
If you have any question or comments, please reach out or raise an issue 🤗.
-
Serverless React SSR on AWS
Thus, I started the process of developing a server-side rendering friendly template a few months ago. I released this template a while ago and have since also completed the implementation of the new version of my blog. This post contains my experiences and learnings from this process.
-
A Guide to CSS Modules with React
For any suggestions, ideas and comments, please be welcome to head to GitHub and create an issue 🤗.
-
Compression for AWS HTTP APIs
See a full source code example here: lambdaCompression.ts
-
Beginners Guide to DynamoDB with Node.js
The above template and boilerplate are regularly updated and automatically tested (project install & standing up infrastructure). If you nonetheless encounter any problems, please raise an issue on GitHub.
-
The Ultimate Guide to Static Websites with S3 and Terraform
Consider helping out making this template better for others by raising an issue in GitHub if you encounter any problems or have questions or ideas.
-
Sending Emails with SES, Terraform and TypeScript
The above assumes that there is a local .aws/config and/or .aws/credentials file present. Note that the AWS credentials in awsUser can be initialised in many different ways, see the file awsUserUtils.ts for reference or the AWS documentation on Setting SDK Credentials in Node.js.
-
Next.js 12 + Bootstrap Boilerplate
If you have any comments or ideas for this template, please head over to the Goldstack GitHub project and raise an issue.
ts-jest
-
In-Depth guide for TypeScript Library
use ts-jest and set up Paths Re-Map
-
Having issues with passing a Typed object to a func... TS isn't warning when properties of said arg are the wrong type
Jest's out of the box config for TS doesn't do any type checking. You can integrate https://kulshekhar.github.io/ts-jest/ or you can call ‘tsc’ yourself separately
-
Is using Jest for anything other than React a bad idea?
ts-jest has had some strange performance issues and workarounds in the past, though I haven’t used it very recently so it might have fixed those by now.
-
Test-Driven Infrastructure Development with Pulumi and Jest
Since we're working with TypeScript, we can use ts-jest, which conveniently brings Jest along for the ride:
-
Improve your Testing with Custom Matchers in Jest
I want to save you from manually copying the snippets one by one, so here is a Gist with the complete test file. This can be easily executed with Jest (or ts-jest for TypeScript).
- Testing Mongoose with Ts-Jest
-
A complete guide to full-stack live reload
See the Jest configuration docs to learn more about Jest configuration. ts-jest also has good documentation.
-
Setup Jest to React Typescript Vite project, also SWC (part 1)
Using @swc/jest to compile code to CommonJS is much faster than babel-jest, ts-jest which have long cold starts when executing tests in a large project.
-
Component Testing in Svelte
ts-jest: A transformer for handling TypeScript files.
-
Running Jest for Typescript CLI - unexpected token at import
Anyway, I ran into this exact error this morning setting up Jest for a TS script. I fixed it by just following the getting started instructions for Jest as well as ts-jest.
What are some alternatives?
nextjs-bootstrap-boilerplate - Boilerplate for a Next.js Project using Bootstrap Styling. Configured for TypeScript and Terraform.
jest - Super-fast alternative for babel-jest or ts-jest without type checking. Please use main repository for issues
terraform-aws-apigateway-v2 - Terraform module to create AWS API Gateway v2 (HTTP/WebSocket) 🇺🇦
esbuild - An extremely fast bundler for the web
ses-terraform-typescript-boilerplate - Boilerplate for sending emails using Amazon Simple Email Service (SES) with TypeScript ready for deployment to AWS using low-cost, highly scaleable serverless infrastructure defined using Terraform.
tsup - The simplest and fastest way to bundle your TypeScript libraries.
amplify-hosting - AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
bob-esbuild - Building and Running TypeScript projects efficiently with rollup + esbuild
aws-lambda-java-libs - Official mirror for interface definitions and helper classes for Java code running on the AWS Lambda platform.
tsc-esm-fix - Make Typescript projects compatible with esm/mjs requirements
Next.js - The React Framework
svgr - Transform SVGs into React components 🦁 [Moved to: https://github.com/gregberge/svgr]