Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
1 result

setupTests.js

Blame
  • setupTests.js 427 B
    import { jest } from '@jest/globals';
    
    // This is included for consistency with `create-react-app`.  It may be become
    // unnecessary in future versions of Jest (see
    // https://github.com/facebook/jest/issues/9430#issuecomment-616232029), but
    // Jest may also choose to move away from magic globals and use imports instead,
    // which are already opt-in (see https://github.com/facebook/jest/issues/4473).
    globalThis.jest = jest;