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 1qdRWy-003PZP-5L for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Sep 2023 08:35:28 +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 1qdRWw-000KUX-PV for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Sep 2023 08:35:26 +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 1qdRWw-000KUD-Fl for pgadmin-hackers@lists.postgresql.org; Tue, 05 Sep 2023 08:35:26 +0000 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qdRWn-0039cI-2c for pgadmin-hackers@postgresql.org; Tue, 05 Sep 2023 08:35:24 +0000 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3a9a6a7a824so1658358b6e.1 for ; Tue, 05 Sep 2023 01:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1693902914; x=1694507714; darn=postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=pcq8FM/sR35QJGFtLeYzLSI1gIc/Z/tnQ3EpF2I3kZc=; b=CkNW5HXc0hoL+U4XGSu361R7+Exib7H8NgAKEQy+8osUL9MhbdF4LCizA9i6hHtQpW LPqcgZ47oog83GHXmDEJiRpkEWAgeGpjZ2SCr420QQHlJ1WWXhtXyiUgpLsUpjt7xUKP rzm5x1Bs790JdaPWjU0nFadX9oOWJ7UOHSLMPsAzkXBARTnK4nwaBF0GRol160kD/s2q Z/74o8GOw5q+EBOMMuMkF/uwWIOEa09QxSUGxTnMYDNiGPzt4yaOZU6/b8+gMQdTG6A4 dw44Dnp4Nrj1+fbch3d8a+A/q1CzV+i0DQp6rEzxg4+IaLlbTZ2Nu6d43VQxn1yNY4MT NHAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693902914; x=1694507714; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pcq8FM/sR35QJGFtLeYzLSI1gIc/Z/tnQ3EpF2I3kZc=; b=Hhaf0RuF26O5oz5pXen7ORk9x65sXpWMqUeToob5AGb2Ubc13yAVoU6YaTyTxzILST IFYWDCYzb3z9kehjVqMhs+BsIEuxI7bO1TQGlpkC/t6vEFSAcs093nnna5ho6NBA+xG7 oAyR3iy6vuNsrTJOdvvfqrRyQpwAsjEaG7JEB+Kggey4N/ncT+lDOcMCQ/4mFpAdJLSr IQWkR7ONlt7kUc61uvTHbiQVjKaJX10M/fej7eY90qp/8xy5D1B8+gHK/s/HrqiISp14 LOcHpVhUq1CVxLS0SSukolKzCay3NDDReZoFiVdWbR09mZQV+oWSAcBzycBjipMrdEve n1nQ== X-Gm-Message-State: AOJu0Yw47l9xUHtwNiZdbXiAPbu/m5aonOUiZtvZmUdLDlgoYDAXbRJM UwGWmEdD1AHioFjt59k1fmBG/B2TrAn4eBgZKedMhHWZCw3BtJXkKEI= X-Google-Smtp-Source: AGHT+IEt3xkakUaX1EERQDmrLVCcQsaOGsLPSkrJ9hpJa3jF6Kiw3yNr6hnCRB6FBIoikAl2Pudmy/seDdlximlIcAk= X-Received: by 2002:a05:6808:23cc:b0:3a8:1012:89d2 with SMTP id bq12-20020a05680823cc00b003a8101289d2mr9660666oib.29.1693902914336; Tue, 05 Sep 2023 01:35:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aditya Toshniwal Date: Tue, 5 Sep 2023 14:04:38 +0530 Message-ID: Subject: Re: Replace jasmine+karma with jest To: pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000007e50340604988119" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007e50340604988119 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Adding to this - https://2022.stateofjs.com/en-US/libraries/testing/ here is what the usage says. On Tue, Sep 5, 2023 at 12:53=E2=80=AFPM Aditya Toshniwal < aditya.toshniwal@enterprisedb.com> wrote: > 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. Jasmin= e > is more for Angular than React. > 3. Jasmine requires enzyme to be installed separately, which is not alway= s > 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" > --=20 Thanks, Aditya Toshniwal pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com* "Don't Complain about Heat, Plant a TREE" --0000000000007e50340604988119 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 fr= amework.
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 i= nstalled separately, which is not always up to=C2=A0date with latest React = versions.=C2=A0https://github.com/enzymejs/enzyme/issues/2524 it stil= l doesn't support React 18.
3. Used by Facebook for React testing.
4. I= n built code coverage.
5. Allows React component mocking which is not possi= ble with jasmine yet.
6. It is jasmine compatible, so easy to migrate.
7. F= uture proof.

What do=C2=A0you think?

--
Thanks,
Aditya Toshniw= al
pgAdmin Hacker=C2=A0| Sr. Software Architect=C2= =A0| enterprisedb.com
"Don't Complain about Heat, Plant a TREE"


--
Thanks,
Aditya Toshniwal
pgAdmin Hacker=C2=A0| Sr. Software Architect=C2=A0| enterprisedb.com