17 lines
339 B
JavaScript
17 lines
339 B
JavaScript
// This is a custom Jest transformer turning style imports into empty objects.
|
|
// http://facebook.github.io/jest/docs/en/webpack.html
|
|
|
|
export default {
|
|
process() {
|
|
return {
|
|
code: "module.exports = {};",
|
|
};
|
|
},
|
|
getCacheKey() {
|
|
// The output is always the same.
|
|
return {
|
|
code: "cssTransform",
|
|
};
|
|
},
|
|
};
|