2017-04-08 17:52:38 +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
|
|
|
/* @flow */
|
2017-04-08 17:52:38 +03:00
|
|
|
|
|
|
|
class AImplementation {}
|
|
|
|
export function foo(): AImplementation { return new AImplementation(); }
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-04-08 17:52:38 +03:00
|
|
|
/* @flow */
|
|
|
|
|
|
|
|
class AImplementation {}
|
|
|
|
export function foo(): AImplementation {
|
|
|
|
return new AImplementation();
|
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-04-08 17:52:38 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`index.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["flow"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-04-12 23:41:51 +03:00
|
|
|
/* @flow */
|
2017-04-08 17:52:38 +03:00
|
|
|
|
|
|
|
var A = require('A');
|
|
|
|
(A.foo(): boolean); // Error: Either AImplementation ~> boolean or ADefinition ~> boolean
|
|
|
|
|
|
|
|
var test = require('test');
|
|
|
|
(test.foo(): boolean); // Error: Either TestImplementation ~> boolean or TestDefinition ~> boolean
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-04-08 17:52:38 +03:00
|
|
|
/* @flow */
|
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
var A = require("A");
|
2017-04-08 17:52:38 +03:00
|
|
|
(A.foo(): boolean); // Error: Either AImplementation ~> boolean or ADefinition ~> boolean
|
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
var test = require("test");
|
2017-04-08 17:52:38 +03:00
|
|
|
(test.foo(): boolean); // Error: Either TestImplementation ~> boolean or TestDefinition ~> boolean
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-04-08 17:52:38 +03:00
|
|
|
`;
|