Skip to content

Instantly share code, notes, and snippets.

View RabbitWithoutaHat's full-sized avatar
♥️

Alex RabbitWithoutaHat

♥️
  • Buenos Aires
View GitHub Profile
var COLLECTION_NAME_LINE_ITEM = "line-items";
var LINEITEM_FIELD_OPTIONS = "options";
var OPTION_TYPE_GROUP = "group";
var OPTION_ADD = "add";
var OPTION_PRICE = "price";
var OPTION_PERCENTAGE = "percentage";
function mapOptions(option) {
if (option.type === OPTION_TYPE_GROUP) {
@RabbitWithoutaHat
RabbitWithoutaHat / ts-jest.md
Created August 26, 2020 14:00 — forked from jackawatts/ts-jest.md
Getting started with Typescript, React and Jest

Getting Started

  1. Install:
  • jest: npm install --save-dev jest
  • ts-jest: npm install --save-dev ts-jest @types/jest
  1. Modify package.json
"jest": {
  "transform": {
 "^.+\\.tsx?$": "ts-jest"