-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Describe the bug
It seems as if something broke when upgrading from 0.30.1 to 0.31.1 with the test timeouts. Passing { timeout: XXX } to describe does not have an effect any longer, the default testTimeout is always used.
Reproduction
Short description:
describe(
"the submitted issue",
() => {
test("true is true after 10s", async () => {
await new Promise((resolve) => setTimeout(resolve, 10000));
expect(true).toBe(true);
});
},
{
timeout: 30000,
}
);I'm expecting the test to pass after approx 10s instead it fails after 5s with the error:
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
System Info
System:
OS: macOS 13.4
CPU: (12) arm64 Apple M2 Max
Memory: 52.25 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
Browsers:
Chrome: 113.0.5672.126
Safari: 16.5
npmPackages:
@vitest/coverage-istanbul: ^0.31.1 => 0.31.1
vite: ^4.3.9 => 4.3.9
vitest: ^0.31.1 => 0.31.1Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels