mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-03 23:09:17 -05:00
c3edcbfcf5
Includes: - Created css variables in JS. - Added JS helpers. - Replaced old sidebar by the "APP Bar" component from Material UI. - Replaced logo by the new version. - Added Avatar icon. - Added Info Icon. - Added Information Dialog, where the user can 'copy to the clipboard' the verdaccio commands. - Added Verdaccio website documentation link. - Added Drop Down Menu on the right side with a logout option
20 lines
466 B
JavaScript
20 lines
466 B
JavaScript
/**
|
|
* @prettier
|
|
* Setup configuration for Jest
|
|
* This file includes global settings for the JEST environment.
|
|
*/
|
|
import 'raf/polyfill';
|
|
import {configure} from 'enzyme';
|
|
import Adapter from 'enzyme-adapter-react-16';
|
|
|
|
configure({adapter: new Adapter()});
|
|
|
|
global.__APP_VERSION__ = '1.0.0';
|
|
|
|
// mocking few DOM methods
|
|
if (global.document) {
|
|
document.createRange = jest.fn(() => ({
|
|
selectNodeContents: () => {},
|
|
}));
|
|
document.execCommand = jest.fn();
|
|
}
|