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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to new major version 26 of Jest #81

Merged
merged 2 commits into from
May 25, 2020
Merged

Upgrade to new major version 26 of Jest #81

merged 2 commits into from
May 25, 2020

Commits on May 25, 2020

  1. Configuration menu
    Copy the full SHA
    2cf0784 View commit details
    Browse the repository at this point in the history
  2. Make use of @jest/globals

    This makes it easier for TypeScript to typecheck our tests, rather
    relying on `any`-typed globals.
    
    For more details, see
    https://jestjs.io/blog/2020/05/05/jest-26#a-new-way-to-consume-jest---jestglobals
    
    Unfortunately, it was not possible to
    `import { jest } from "@jest/globals"` in files that also call
    jest.mock(). This was reported here:
    jestjs/jest#10060
    Vinnl committed May 25, 2020
    Configuration menu
    Copy the full SHA
    e49e933 View commit details
    Browse the repository at this point in the history