Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
4
test/JSONToFile/JSONToFile.js
Normal file
4
test/JSONToFile/JSONToFile.js
Normal file
@ -0,0 +1,4 @@
|
||||
const fs = require('fs');
|
||||
const JSONToFile = (obj, filename) =>
|
||||
fs.writeFile(`${filename}.json`, JSON.stringify(obj, null, 2));
|
||||
module.exports = JSONToFile;
|
||||
Reference in New Issue
Block a user