Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate tests to jest #102

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Migrate tests to jest #102

merged 2 commits into from
Jul 8, 2024

Conversation

madergaser
Copy link
Collaborator

Mocha is broken in CI and is broken locally after deleting node_modules. Can't figure out why so might as well migrate to jest, decreases test time from 10min -> ~2.5min as a nice side effect

@@ -47,7 +47,7 @@ program = "./tests/deps/spl_token_2022.so"
mmm = "mmm3XBJg5gk8XJxEKBvdgptZz6SgK4tXvn36sodowMc"

[scripts]
test = "npx ts-mocha -p ./tsconfig.json -t 1000000 tests/**/*.ts"
test = "npx jest"
Copy link
Contributor

@C-o-d-e-C-o-w-b-o-y C-o-d-e-C-o-w-b-o-y Jul 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You dont need npx if you have it as a dependency in the package, you can just do npm, should be faster

Resolved offline

@nothing0012
Copy link
Contributor

thanks, can we fix the CI?

@madergaser madergaser merged commit 3cec5e5 into main Jul 8, 2024
1 check passed
@madergaser madergaser deleted the md/migrate-tests-to-jest branch July 8, 2024 16:42
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.

3 participants