2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`A.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
/* @providesModule A */
|
2016-12-23 22:31:38 +03:00
|
|
|
class Implementation {}
|
|
|
|
export function foo(): Implementation { return new Implementation; }
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2016-12-23 22:31:38 +03:00
|
|
|
/* @providesModule A */
|
|
|
|
class Implementation {}
|
|
|
|
export function foo(): Implementation {
|
2017-01-11 02:51:46 +03:00
|
|
|
return new Implementation();
|
2017-01-11 18:16:38 +03:00
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`ExplicitProvidesModuleDifferentName.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
/*
|
2016-12-23 22:31:38 +03:00
|
|
|
* @providesModule ExplicitProvidesModuleDifferentName
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Implementation {}
|
|
|
|
module.exports.fun = (): Implementation => new Implementation;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2016-12-23 22:31:38 +03:00
|
|
|
/*
|
|
|
|
* @providesModule ExplicitProvidesModuleDifferentName
|
|
|
|
* @flow
|
|
|
|
*/
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2016-12-23 22:31:38 +03:00
|
|
|
class Implementation {}
|
2017-01-11 18:16:38 +03:00
|
|
|
module.exports.fun = (): Implementation => new Implementation();
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`ExplicitProvidesModuleSameName.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
/*
|
2016-12-23 22:31:38 +03:00
|
|
|
* @providesModule ExplicitProvidesModuleSameName
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Implementation {}
|
|
|
|
module.exports.fun = (): Implementation => new Implementation;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2016-12-23 22:31:38 +03:00
|
|
|
/*
|
|
|
|
* @providesModule ExplicitProvidesModuleSameName
|
|
|
|
* @flow
|
|
|
|
*/
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2016-12-23 22:31:38 +03:00
|
|
|
class Implementation {}
|
2017-01-11 18:16:38 +03:00
|
|
|
module.exports.fun = (): Implementation => new Implementation();
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`ImplicitProvidesModule.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
/*
|
2016-12-23 22:31:38 +03:00
|
|
|
* @providesModule ImplicitProvidesModule
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Implementation {}
|
|
|
|
module.exports.fun = (): Implementation => new Implementation;
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2016-12-23 22:31:38 +03:00
|
|
|
/*
|
|
|
|
* @providesModule ImplicitProvidesModule
|
|
|
|
* @flow
|
|
|
|
*/
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2016-12-23 22:31:38 +03:00
|
|
|
class Implementation {}
|
2017-01-11 18:16:38 +03:00
|
|
|
module.exports.fun = (): Implementation => new Implementation();
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`md5.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
/* @providesModule md5 */
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-02-05 05:36:29 +03:00
|
|
|
/* @providesModule md5 */
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`test.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
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
var Implicit = require('ImplicitProvidesModule');
|
2016-12-23 22:31:38 +03:00
|
|
|
(Implicit.fun(): boolean); // Error: Either Implementation ~> boolean or Declaration ~> boolean
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
var ExplicitSameName = require('ExplicitProvidesModuleSameName');
|
2016-12-23 22:31:38 +03:00
|
|
|
(ExplicitSameName.fun(): boolean); // Error: Either Implementation ~> boolean or Declaration ~> boolean
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
var ExplicitDifferentName = require('ExplicitProvidesModuleDifferentName');
|
2016-12-23 22:31:38 +03:00
|
|
|
(ExplicitDifferentName.fun(): boolean); // Error: Either Implementation ~> boolean or Declaration ~> boolean
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2016-12-23 22:31:38 +03:00
|
|
|
/* @flow */
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
var Implicit = require("ImplicitProvidesModule");
|
2017-01-26 22:57:43 +03:00
|
|
|
(Implicit.fun(): boolean); // Error: Either Implementation ~> boolean or Declaration ~> boolean
|
2017-01-31 19:27:44 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
var ExplicitSameName = require("ExplicitProvidesModuleSameName");
|
2017-01-26 22:57:43 +03:00
|
|
|
(ExplicitSameName.fun(): boolean); // Error: Either Implementation ~> boolean or Declaration ~> boolean
|
2017-01-31 19:27:44 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
var ExplicitDifferentName = require("ExplicitProvidesModuleDifferentName");
|
2017-01-11 18:16:38 +03:00
|
|
|
(ExplicitDifferentName.fun(): boolean); // Error: Either Implementation ~> boolean or Declaration ~> boolean
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|