From 77811c3c1b34bd05a7a3f6edaf3e8442c333dcc2 Mon Sep 17 00:00:00 2001 From: Benjamin Elo Date: Thu, 8 Aug 2019 02:31:52 -0700 Subject: [PATCH] Fix for Jest tests failing with typescript Summary: Tests were failing as they were not being transformed correctly. Class properties (proposed syntax) was only partially added for Typescript files. This fixes the issue. Reviewed By: passy Differential Revision: D16686613 fbshipit-source-id: 2108cf77eb688bb6825d016960480ea55fcc2620 --- static/transforms/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/transforms/index.js b/static/transforms/index.js index 247e20b8c..ead49229b 100644 --- a/static/transforms/index.js +++ b/static/transforms/index.js @@ -47,6 +47,7 @@ function transform({filename, options, src}) { plugins.push( require('../node_modules/@babel/plugin-transform-typescript'), require('../node_modules/@babel/plugin-transform-modules-commonjs'), + require('../node_modules/@babel/plugin-proposal-class-properties'), ); }