adding tests
This commit is contained in:
8
jest/cssTransform.js
Normal file
8
jest/cssTransform.js
Normal file
@@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
process() {
|
||||
return 'module.exports = {};'
|
||||
},
|
||||
getCacheKey() {
|
||||
return 'cssTransform'
|
||||
},
|
||||
}
|
||||
7
jest/fileTransform.js
Normal file
7
jest/fileTransform.js
Normal 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
4
jest/setup.js
Normal file
@@ -0,0 +1,4 @@
|
||||
import Enzyme from 'enzyme';
|
||||
import Adapter from 'enzyme-adapter-react-16';
|
||||
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
Reference in New Issue
Block a user