We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e05fb22 commit 932e5a0Copy full SHA for 932e5a0
config/fileTransformer.js
@@ -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