Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

add noJestGlobals config, if false, no jest-circus globals #9306

Closed
wants to merge 4 commits into from

Commits on Dec 15, 2019

  1. export x[it|test|describe], f[it|describe] from jest-circus

    - previously was set exclusively on the global, no way to import from
      module
      - now it is done both ways
    agilgur5 committed Dec 15, 2019
    Copy the full SHA
    845c447 View commit details
    Browse the repository at this point in the history
  2. add noJestGlobals config, if false, no jest-circus globals

    - don't set them if config for either global or project is false
    
    - still initialize test.concurrent, but directly on the imported module
      instead of on its global alias
      - requires a type-cast though
    agilgur5 committed Dec 15, 2019
    Copy the full SHA
    131ac13 View commit details
    Browse the repository at this point in the history
  3. jest-circus expect global respects noJestGlobals config

    - still adds the snapshot matchers, so they should still work if one
      were to directly import expect
    agilgur5 committed Dec 15, 2019
    Copy the full SHA
    5915a15 View commit details
    Browse the repository at this point in the history
  4. export expect from jest-circus as well for easy import

    - so all the test globals (except for 'jest') can be imported from
      jest-circus, no need to import from 'expect' as well
      - jest-circus sets the expect global, so would make sense that you
        could import from it as well
    agilgur5 committed Dec 15, 2019
    Copy the full SHA
    f7d9db1 View commit details
    Browse the repository at this point in the history