Skip to content

Standardize file naming #4969

Closed
Closed
@mjesun

Description

@mjesun

File naming conventions in Jest can be improved. A good example is the integration_tests folder. We have:

  • Dashed names: auto-clear-mocks
  • Underscored names: clear_cache
  • Camel case names: testNamePattern
  • Dash + camel case names: timer-resetMocks
  • Underscore + camel case names: stack_trace_no_captureStackTrace
  • ? names: regex-(char-in-path

I understand that some of the camel cased ones reference actual method names, like captureStackTrace, but I think we could do it better. This is absolutely not top-priority, but I just wanted to add a task to it because it feels there's room for improvement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions