2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`foo.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
/** @flow */
|
2016-12-23 22:31:38 +03:00
|
|
|
/* this require routes to nothing, because
|
|
|
|
our node_modules/underscore directory
|
|
|
|
has been excluded. If package.json files
|
2017-02-22 00:59:19 +03:00
|
|
|
are being excluded properly, we'll get
|
|
|
|
'Required module not found'.
|
2016-12-23 22:31:38 +03:00
|
|
|
*/
|
2017-02-22 00:59:19 +03:00
|
|
|
var _ = require('underscore');
|
2016-12-23 22:31:38 +03:00
|
|
|
|
|
|
|
function foo(): string {
|
|
|
|
return _.foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = foo;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2016-12-23 22:31:38 +03:00
|
|
|
/** @flow */
|
|
|
|
/* this require routes to nothing, because
|
|
|
|
our node_modules/underscore directory
|
|
|
|
has been excluded. If package.json files
|
2017-02-22 00:59:19 +03:00
|
|
|
are being excluded properly, we'll get
|
|
|
|
'Required module not found'.
|
2016-12-23 22:31:38 +03:00
|
|
|
*/
|
2017-04-12 23:41:51 +03:00
|
|
|
var _ = require("underscore");
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2016-12-23 22:31:38 +03:00
|
|
|
function foo(): string {
|
|
|
|
return _.foo();
|
|
|
|
}
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2017-01-11 18:16:38 +03:00
|
|
|
module.exports = foo;
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|