feat(test): Setup unit testing

This commit is contained in:
Simon Chen
2018-12-05 13:52:33 -05:00
parent db25a18f9d
commit adfefac85d
5 changed files with 90 additions and 0 deletions

View File

@@ -4,3 +4,7 @@ import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
// These configuration values are usually set in webpack's EnvironmentPlugin however
// Jest does not use webpack so we need to set these so for testing
process.env.LMS_BASE_URL = 'http://localhost:18000';