Comparing version
@@ -19,3 +19,4 @@ 'use strict'; | ||
var result = _jsYaml2.default.safeLoad(sourceText); | ||
return JSON.stringify(result, undefined, '\t'); | ||
var json = JSON.stringify(result, undefined, '\t'); | ||
return 'module.exports = ' + json; | ||
}; | ||
@@ -22,0 +23,0 @@ |
{ | ||
"name": "yaml-jest", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A YAML transform for jest", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -25,3 +25,4 @@ // @flow | ||
const result: string = yaml.safeLoad(sourceText); | ||
return JSON.stringify(result, undefined, '\t'); | ||
const json = JSON.stringify(result, undefined, '\t'); | ||
return `module.exports = ${json}`; | ||
}; | ||
@@ -28,0 +29,0 @@ |
4400
1.95%71
2.9%