Skip to content

Replace it/should with test in test files #1099

@threeal

Description

@threeal

Suggestion

Replace the current it('should ...') pattern with test(...) across all test files.

Reason

The it('should ...') style is a BDD convention carried over from Jasmine/Mocha. In Vitest (and Jest), test is the idiomatic default — it's what the official documentation uses in its examples. The should prefix is also redundant: a test description already implies an expectation, so the word adds ceremony without adding clarity.

Using test produces shorter, more direct descriptions and aligns with how modern Vitest projects are conventionally written.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions