adding tests

This commit is contained in:
Benjamin Boudreau
2018-05-29 21:56:01 -04:00
parent 9e9127738e
commit 234431c143
9 changed files with 2346 additions and 14 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))};`
},
}

4
jest/setup.js Normal file
View File

@@ -0,0 +1,4 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });