Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdQQD-003L6U-Bk for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Sep 2023 07:24:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qdQQB-0000UY-Sp for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Sep 2023 07:24:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdQQB-0000UP-KI for pgadmin-hackers@lists.postgresql.org; Tue, 05 Sep 2023 07:24:23 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qdQQ6-00391P-Ii for pgadmin-hackers@postgresql.org; Tue, 05 Sep 2023 07:24:22 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-571194584e2so1374116eaf.3 for ; Tue, 05 Sep 2023 00:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1693898655; x=1694503455; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=yIS5FaQMzgzbzwAzP9qt3KzbeMcaqJYUqlUk5KP2q1I=; b=CFldEMgZKJ0oubKL1j4fBLll54aVupIzo6Q0nDE3jqyeub+rm85H5PWhNItVgQ9yll 1hMJw0P+zAExZmroUgmg8KRXQm+/jE/zkSZl1BtktehDucqJkKaE7GPIVvyuKkQmQ+VI bTa1HnjeiQg413ymyVT3P7fRrM36+bADqYHJIo+RbzPp0XcfH096/GvQNhtNP8KFEKGP Q3MenoDVtNdkhh+TMunSUG+69b8EsCS5SaZW6kQIqXUA9Lhzi6RSsStUiYZbJ7M2f0zS C11gOhbFOFwcjP41/Cr3O/TbKOn1yVlYd0dsQVLORisDXTi6oxQn9xzJpC78cu4ZjivW MkmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693898655; x=1694503455; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yIS5FaQMzgzbzwAzP9qt3KzbeMcaqJYUqlUk5KP2q1I=; b=lL/FqUykg0JOGm1NZ45rbFj750ST77OF/Z2fc2LKg85dqVynny8eTdqiaOKXPgZ2qH XWiSTD9DDHCFxnHwDcihtJIiQQeWkn9MotirjoX+0XOQGfDfwvGEEeHmsVu/mfHw3VvS sUcCbww9kBhaVS9SVlKMkiasPRTAZqbvi5iQqSb0h0/zGFxX0iccRaKU7U7fRkNYJ24V iBgINh34PRUPDUGEesPtAg5os8Dvs63snclbQBWM4X1v/FN660Cog+cS26xHQJDO9DSM sxxhSD+Wx/p5DifZXoYaykDD3hVrnuFAdMxp3xzQsAiBKEaQ6TYzxLnfjuXRuB7wq9EZ nShw== X-Gm-Message-State: AOJu0YyVgLFgB3+JzWAh9IC/cy6tkVSnXWgQwnbOpogyAtaNvj+Uiqpy szwVyHTndpwbsT7NDIzq/9taXHdx9wyGzkX6Tu82ElYmzDi3ckXPS78= X-Google-Smtp-Source: AGHT+IHZZdMzhohJWFrJLZj2B/VQzk78gaaYb1CXoQeFFP+wCsnLdpJTY1UPW387lHJ1lx2tfxHWulK4IBxTC1RhMxk= X-Received: by 2002:a4a:6c11:0:b0:571:aceb:26d0 with SMTP id q17-20020a4a6c11000000b00571aceb26d0mr10703743ooc.2.1693898655397; Tue, 05 Sep 2023 00:24:15 -0700 (PDT) MIME-Version: 1.0 From: Aditya Toshniwal Date: Tue, 5 Sep 2023 12:53:39 +0530 Message-ID: Subject: Replace jasmine+karma with jest To: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000a412260604978372" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a412260604978372 Content-Type: text/plain; charset="UTF-8" Hi Hackers, I suggest we should replace jasmine+karma combination with jest for the following reasons: 1. Jest is a zero dependency, less config testing framework. 2. Has built in support for React. Easy to write React test cases. Jasmine is more for Angular than React. 3. Jasmine requires enzyme to be installed separately, which is not always up to date with latest React versions. https://github.com/enzymejs/enzyme/issues/2524 it still doesn't support React 18. 3. Used by Facebook for React testing. 4. In built code coverage. 5. Allows React component mocking which is not possible with jasmine yet. 6. It is jasmine compatible, so easy to migrate. 7. Future proof. What do you think? -- Thanks, Aditya Toshniwal pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com* "Don't Complain about Heat, Plant a TREE" --000000000000a412260604978372 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Hackers,

I suggest we should replace = jasmine+karma combination with jest for the following reasons:
1. Jest is a= zero dependency, less config testing framework.
2. Has built in support fo= r React. Easy to write React test cases. Jasmine is more for Angular than R= eact.
3. Jasmine requires enzyme to be installed separately, which is not a= lways up to=C2=A0date with latest React versions.=C2=A0https://github.com/enzymejs/enzyme/i= ssues/2524 it still doesn't support React 18.
3. Used by Facebook f= or React testing.
4. In built code coverage.
5. Allows React component mock= ing which is not possible with jasmine yet.
6. It is jasmine compatible, so= easy to migrate.
7. Future proof.

What do=C2=A0you think?
=
--
Thanks= ,
Aditya Toshniwal
pgAdmin Hacker=C2=A0| Sr. Software Architect=C2=A0| = <= font face=3D"arial, sans-serif" color=3D"#0c343d">enterprisedb.com
"Don&#= 39;t Complain about Heat, Plant a TREE"
--000000000000a412260604978372--