Skip to content

Allow inline workspace #6913

@sheremet-va

Description

@sheremet-va

Clear and concise description of the problem

It would be nice to support inline workspace configuration:

export default defineConfig({
  test: {
    workspace: [
      {
        test: { 
          name: 'node', 
          environment: 'node'
        }, 
      },
      {
        test: { 
          name: 'jsdom', 
          environment: 'jsdom'
        }, 
      }
    ]
  }
})

This feature is required for #6912 to make the migration easier.

Suggested solution

Alllow inlined workspace in the main config.

Alternative

No response

Additional context

Some questions:

  1. Should inline workspace override the workspace file? Or should they be merged instead?
  2. Is there a way to reduce the nesting?

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-significantHigh priority enhancement (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions