From 07abf0587b92bcd6df3568cb686e3b2d0950910a Mon Sep 17 00:00:00 2001 From: Trevor Date: Thu, 14 Mar 2019 13:05:47 -0700 Subject: [PATCH 1/2] fix(jest-transformer): explicitly add babel-preset-jest dependency --- packages/@lwc/jest-transformer/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@lwc/jest-transformer/package.json b/packages/@lwc/jest-transformer/package.json index 362e337b9c..9841de44ce 100644 --- a/packages/@lwc/jest-transformer/package.json +++ b/packages/@lwc/jest-transformer/package.json @@ -16,6 +16,7 @@ "@babel/plugin-transform-modules-commonjs": "7.1.0", "@babel/template": "~7.1.2", "@lwc/errors": "0.37.0", + "babel-preset-jest": "^24.0.0", "deasync": "0.1.14" }, "peerDependencies": { From 2ac552b8dc58aeff3654f2c95436ce0c7495d9f5 Mon Sep 17 00:00:00 2001 From: Trevor Date: Mon, 18 Mar 2019 08:54:23 -0700 Subject: [PATCH 2/2] wip: jest as peer dep to jest-transformer --- packages/@lwc/jest-transformer/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@lwc/jest-transformer/package.json b/packages/@lwc/jest-transformer/package.json index 9841de44ce..e5c3c29103 100644 --- a/packages/@lwc/jest-transformer/package.json +++ b/packages/@lwc/jest-transformer/package.json @@ -21,7 +21,8 @@ }, "peerDependencies": { "@lwc/compiler": "0.37.x", - "@lwc/engine": "0.37.x" + "@lwc/engine": "0.37.x", + "jest": "24.x" }, "devDependencies": { "@lwc/compiler": "0.37.0",