Skip to content

Jest 'setupTestFrameworkScriptFile' Deprecation Warning #239

Description

@samechikson

Is your feature request related to a problem? Please describe.
Not really a problem, just a warning when running tests

● Deprecation Warning:

  Option "setupTestFrameworkScriptFile" was replaced by configuration "setupFilesAfterEnv", which supports multiple paths.

  Please update your configuration.

  Configuration Documentation:
  https://jestjs.io/docs/configuration.html

Describe the solution you'd like
Change https://github.com/meltedspark/angular-builders/blob/9a7cfa092fa9e220ea30143b50194faf51e095a0/packages/jest/src/jest-config/default-config.ts#L7
to

setupFilesAfterEnv: [`${__dirname}/setup.js`], 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions