public inbox for [email protected]  
help / color / mirror / Atom feed
Replace jasmine+karma with jest
3+ messages / 2 participants
[nested] [flat]

* Replace jasmine+karma with jest
@ 2023-09-05 07:23  Aditya Toshniwal <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Aditya Toshniwal @ 2023-09-05 07:23 UTC (permalink / raw)
  To: pgadmin-hackers

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*
<https://www.enterprisedb.com/;
"Don't Complain about Heat, Plant a TREE"


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Replace jasmine+karma with jest
@ 2023-09-05 08:34  Aditya Toshniwal <[email protected]>
  parent: Aditya Toshniwal <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Aditya Toshniwal @ 2023-09-05 08:34 UTC (permalink / raw)
  To: pgadmin-hackers

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 PM Aditya Toshniwal <
[email protected]> 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*
> <https://www.enterprisedb.com/;
> "Don't Complain about Heat, Plant a TREE"
>


-- 
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com*
<https://www.enterprisedb.com/;
"Don't Complain about Heat, Plant a TREE"


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Replace jasmine+karma with jest
@ 2023-09-05 10:21  Akshay Joshi <[email protected]>
  parent: Aditya Toshniwal <[email protected]>
  0 siblings, 0 replies; 3+ messages in thread

From: Akshay Joshi @ 2023-09-05 10:21 UTC (permalink / raw)
  To: Aditya Toshniwal <[email protected]>; +Cc: pgadmin-hackers

Looks good to me.

On Tue, Sep 5, 2023 at 2:05 PM Aditya Toshniwal <
[email protected]> 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 PM Aditya Toshniwal <
> [email protected]> 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*
>> <https://www.enterprisedb.com/;
>> "Don't Complain about Heat, Plant a TREE"
>>
>
>
> --
> Thanks,
> Aditya Toshniwal
> pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com*
> <https://www.enterprisedb.com/;
> "Don't Complain about Heat, Plant a TREE"
>


^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2023-09-05 10:21 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-09-05 07:23 Replace jasmine+karma with jest Aditya Toshniwal <[email protected]>
2023-09-05 08:34 ` Aditya Toshniwal <[email protected]>
2023-09-05 10:21   ` Akshay Joshi <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox