I would like to get rid of globals in my jest test code. Specifically describe
, it
and expect
describe('Welcome (Snapshot)', () => {
it('Welcome renders hello world', () => {
...
});
});
So I tried add
import {describe,it} from 'jest';
and
import jest from 'jest';
jest.describe( ...
jest.it( ...
and other variations..
But no luck.
How should I get it working?