Skip to content

Unable to use per project globalSetup/Teardown #8228

@jaxxstorm

Description

@jaxxstorm

I have a jest configuration using the changes merged in #6865

module.exports = {
  projects: [
    {
      displayName: 'storageclasses',
      globalSetup: '<rootDir>/components/storageclasses/test/0-setup.js',
      globalTeardown: '<rootDir>/components/storageclasses/test/teardown.js',
    },
  ],
};

However, when I run Jest, the globalSetup step never gets executed. Am I misunderstanding how this is supposed to work?

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