cleaned up for github

This commit is contained in:
Sharon Kennedy
2020-05-07 10:45:17 -04:00
commit ec22cb8585
38 changed files with 13921 additions and 0 deletions

8
jest/cssTransform.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
process() {
return 'module.exports = {};';
},
getCacheKey() {
return 'cssTransform';
},
};

7
jest/fileTransform.js Normal file
View File

@@ -0,0 +1,7 @@
const path = require('path');
module.exports = {
process(src, filename) {
return `module.exports = ${JSON.stringify(path.basename(filename))};`;
},
};

11
jest/setup.js Normal file
View File

@@ -0,0 +1,11 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
Object.defineProperty(document, 'readyState', {
value: 'complete',
writable: true,
enumerable: true,
configurable: true,
});