From ecf468855562d6b0370be6bbab702785b73c40da Mon Sep 17 00:00:00 2001 From: stephanie rousset Date: Fri, 20 Sep 2024 15:29:26 +0200 Subject: [PATCH] fix: trying add dependencies in dummy_app --- Rakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rakefile b/Rakefile index 264a5be..6fce610 100644 --- a/Rakefile +++ b/Rakefile @@ -9,11 +9,17 @@ def fix_babel_config(path) FileUtils.cp("#{__dir__}/babel.config.json", Dir.pwd) end end +def install_module(path) + Dir.chdir(path) do + system("npm i @babel/plugin-proposal-private-property-in-object") + end +end desc "Generates a dummy app for testing" task test_app: "decidim:generate_external_test_app" do ENV["RAILS_ENV"] = "test" fix_babel_config("spec/decidim_dummy_app") + install_module("spec/decidim_dummy_app") end desc "Generates a development app."