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 1qdTFR-003XC5-W5 for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Sep 2023 10:25:30 +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 1qdTFQ-000wlm-U8 for pgadmin-hackers@arkaria.postgresql.org; Tue, 05 Sep 2023 10:25:28 +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 1qdTCE-000tH2-Qb for pgadmin-hackers@lists.postgresql.org; Tue, 05 Sep 2023 10:22:10 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qdTC8-003AaM-HF for pgadmin-hackers@postgresql.org; Tue, 05 Sep 2023 10:22:09 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bcc4347d2dso34052931fa.0 for ; Tue, 05 Sep 2023 03:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1693909323; x=1694514123; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/2LOOaoOTMNbit3X/JVjyYdbMfdnCjBAtlMvTmvz9ss=; b=KheRwExulkBdQGrnoQWcq0KHxcTl4HgMhMdBQJv+JoW7xkHLjbFTZs0r9f3eDyYXT8 UrBrqWpHqvUhdavBku0Oq7WXrBKJco5CSXXqeSi78fB5ZKCzV8fsxp9y4uJ6HXX+bo/+ PZRHEI1US9/kmSJOPS2RI0TqnoNBfRIJ1r10ZVzjGGPDQDJreCJqqJk+M8dY43AHRIJR 3XTe1JyR9zPJnphRHdScw2Adm9kJPPOwI0+SpSopEeATeQX2Kf0jR1cXQWQu1+DJYpxh ckzqCaM/gyAC0cHxK14MtSX9hVpd51ma/UUWCo5A70qeWjiX3ApeBYfpFQD0POY89i/9 Txlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693909323; x=1694514123; h=cc: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=/2LOOaoOTMNbit3X/JVjyYdbMfdnCjBAtlMvTmvz9ss=; b=AGOQW+QYzdCv6HmZ5JwsFfI7iYNnqiYiRQhJzYlXcPQER/hzIbsuLAcv0+WG5iXG9p 3BpRlj0ZknJKCtwsFyOAui4ALyEGRJ5rHdhimCTsuy69WrRFCRehs3NEbyQ6UyseCcZi Rq2tEW1lE5SB6sJL4MoSHp7nFdASoNOcNuYm4oCilCB5Ebop8T0IR3IfQqRg7MVYNstJ oiEEbb4hAQA2zdY+SBZnZfXp/YhLCASnaJdSNafGxuIKYw4LkkIzIN7tgDcgJntUQ/qk r18yWiOBKV/ExfoR4o2zwRn3ZRaR5kQkbAreruLWOotxlzun0bfui2JgF1OZTlyeyHEn bx6Q== X-Gm-Message-State: AOJu0YwP0x3YTijMYKlSHF+4/DzTa/+4WLlUYuhgqkRGVn58QICW1hgF OW9pdUOEYi134iSxFUcgeoSrQQe2YqyOoPrtJdaPxw== X-Google-Smtp-Source: AGHT+IHnC4asp7v7p9cicQiLbzNsq1f909xBB3wDR9HjMDuzxBAnv3nUR0in/D0BOfP6af4tU4gP+ILC0NL4j2k62yc= X-Received: by 2002:a2e:994b:0:b0:2bc:dcdb:b5dc with SMTP id r11-20020a2e994b000000b002bcdcdbb5dcmr8728357ljj.39.1693909323566; Tue, 05 Sep 2023 03:22:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Tue, 5 Sep 2023 15:51:52 +0530 Message-ID: Subject: Re: Replace jasmine+karma with jest To: Aditya Toshniwal Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000008373a6060499ffbc" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008373a6060499ffbc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Looks good to me. On Tue, Sep 5, 2023 at 2:05=E2=80=AFPM Aditya Toshniwal < aditya.toshniwal@enterprisedb.com> wrote: > 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. >> 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" >> > > > -- > Thanks, > Aditya Toshniwal > pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com* > > "Don't Complain about Heat, Plant a TREE" > --0000000000008373a6060499ffbc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Looks good to me.

On Tue, Sep 5, 2023 at 2:05=E2=80=AFPM Ad= itya Toshniwal <adi= tya.toshniwal@enterprisedb.com> wrote:
Adding to this -=C2=A0http= s://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 follo= wing reasons:
1. Jest is a zero dependency, less config testing framework.<= /div>
= 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=C2=A0date with latest React versions.= =C2=A0https://github.com/enzymejs/enzyme/issues/2524 it still doesn&#= 39;t support React 18.
3. Used by Facebook for React testing.
4. In built c= ode coverage.
5. Allows React component mocking which is not possible with = jasmine yet.
6. It is jasmine compatible, so easy to migrate.
7. Future pro= of.

What do=C2=A0you think?

--
<= div dir=3D"ltr">
Thanks,
Aditya Toshniwal
pgAdmin Hacker=C2=A0| Sr. Software Architect=C2=A0| enterprisedb.com

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