Skip to content

ejzimmer/prefer-importing-jest-globals-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal reproduction for jest-community/eslint-plugin-jest#1634

Clone & yarn install as usual Run yarn lint --fix

Expect some_tests.tsx to have content

import { describe, expect, it, jest } from '@jest/globals';
describe("test", () => {
  it("uses jest globals", async () => {
    const mock = jest.fn();
    mock();
    expect(mock).toHaveBeenCalled();
  });
});

Actual content

const { describe, expect, it, jest } = require('@jest/globals');
describe("test", () => {
  it("uses jest globals", async () => {
    const mock = jest.fn();
    mock();
    expect(mock).toHaveBeenCalled();
  });
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published