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

Add per-test timeout option #9

Closed
wants to merge 1 commit into from

Conversation

cloudrac3r
Copy link

Now each test can have its own timeout option, like this:

test("long test", t => {
  t.equal(longCalculation(), 42)
}, {timeout: 60000})

This is useful when most tests are quick and some are slow.

If there's no timeout option, the SUPERTAPE_TIMEOUT environment variable takes effect. This defaults to 3000ms like before.

This change is backwards compatible with previous supertape versions.

@coderaiser
Copy link
Owner

coderaiser commented Mar 1, 2024

Nice! Please fix lint (npm run fix:lint)

@coderaiser
Copy link
Owner

Thanks a lot! merged as 4aeb021, landed in 📼Supertape v10.3.0 🎉

@coderaiser coderaiser closed this Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants