mirror of
https://github.com/SomboChea/ui
synced 2026-01-19 09:36:30 +07:00
chore: enable optional chaining and nullish (#306)
This commit is contained in:
committed by
Priscila Oliveira
parent
58cf730b98
commit
0a48906fc8
@@ -3,6 +3,7 @@ import { ReactWrapper } from 'enzyme';
|
||||
|
||||
import { mount } from '../utils/test-enzyme';
|
||||
import storage from '../utils/storage';
|
||||
// eslint-disable-next-line jest/no-mocks-import
|
||||
import { generateTokenWithTimeRange } from '../../jest/unit/components/__mocks__/token';
|
||||
|
||||
import App from './App';
|
||||
@@ -31,6 +32,7 @@ jest.mock('../utils/storage', () => {
|
||||
});
|
||||
|
||||
jest.mock('../utils/api', () => ({
|
||||
// eslint-disable-next-line jest/no-mocks-import
|
||||
request: require('../../jest/unit/components/__mocks__/api').default.request,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user