Skip to content

Commit 37ba4b6

Browse files
authored
Merge pull request #35 from CodinGame/fix-file-initialization
Fix file initialization
2 parents e39570b + cb95ce8 commit 37ba4b6

File tree

6 files changed

+2353
-1517
lines changed

6 files changed

+2353
-1517
lines changed

jest/cssTransform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module.exports = {
77
process() {
8-
return 'module.exports = {};';
8+
return { code: 'module.exports = {};' };
99
},
1010
getCacheKey() {
1111
// The output is always the same.

jest/fileTransform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = {
22
process(src, filename) {
33
const assetFilename = JSON.stringify(filename);
44

5-
return `module.exports = ${assetFilename};`;
5+
return { code: `module.exports = ${assetFilename};` };
66
},
77
};

0 commit comments

Comments
 (0)