Skip to content

Commit 932e5a0

Browse files
authored
Create fileTransformer.js
1 parent e05fb22 commit 932e5a0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: config/fileTransformer.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// source: https://jestjs.io/docs/code-transformation#examples
2+
3+
const path = require('path');
4+
5+
module.exports = {
6+
process(src, filename, config, options) {
7+
return 'module.exports = ' + JSON.stringify(path.basename(filename)) + ';';
8+
},
9+
};

0 commit comments

Comments
 (0)