Skip to content

refactor: drop jest#2

Open
slagiewka wants to merge 1 commit into
gmac:mainfrom
slagiewka:no_jest
Open

refactor: drop jest#2
slagiewka wants to merge 1 commit into
gmac:mainfrom
slagiewka:no_jest

Conversation

@slagiewka
Copy link
Copy Markdown

Hey, I'm following this project from the thread in graphql-js 😉

I thought I might leave this in case the project gets more traction. Even such a simple suite of tests suffers under Jest.
Execution time:
Before: 1.4-2s
After: 200-300ms

It might be even faster if tsx is not needed - with node's native type erasing.

In modern node projects, the stdlib is usually enough. In other cases, other testing frameworks provide better interop with TypeScript and/or ES modules.

Bump tsx to the latest version to rid of warnings on node 26.

Tested on latest 18, 20, 22, 24, 26.

It's totally OK if you have other goals in mind or this doesn't fit the project.

In modern node projects, the stdlib is usually enough. In other cases,
other testing frameworks provide better interop with TypeScript and/or
ES modules.

Bump tsx to the latest version to rid of warnings on node 26.

Tested on latest 18, 20, 22, 24, 26.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant