Skip to content

[Feature]: Support npm package names in setupFiles #669

@chenjiahan

Description

@chenjiahan

What problem does this feature solve?

setupFiles should accept npm package names in addition to local file paths.

This matches Vitest and Jest behavior and allows loading setup utilities directly without wrapper files.

What does the proposed API look like?

Example:

setupFiles: [
  '@scope/my-rstest-config/setup',
  './test/setup.ts',
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions