90 lines
1.9 KiB
Plaintext
90 lines
1.9 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`A.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
/**
|
|
* @providesModule A
|
|
* @flow
|
|
*/
|
|
|
|
import type T from "T";
|
|
|
|
export default class {
|
|
p: T;
|
|
|
|
constructor() {
|
|
this.p = 0;
|
|
}
|
|
}
|
|
|
|
=====================================output=====================================
|
|
/**
|
|
* @providesModule A
|
|
* @flow
|
|
*/
|
|
|
|
import type T from "T";
|
|
|
|
export default class {
|
|
p: T;
|
|
|
|
constructor() {
|
|
this.p = 0;
|
|
}
|
|
}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`B.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
/**
|
|
* @flow
|
|
*/
|
|
|
|
import A from "A"
|
|
|
|
class B extends A {
|
|
p: string; // OK, string ~> any
|
|
}
|
|
|
|
=====================================output=====================================
|
|
/**
|
|
* @flow
|
|
*/
|
|
|
|
import A from "A";
|
|
|
|
class B extends A {
|
|
p: string; // OK, string ~> any
|
|
}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`T.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
/**
|
|
* @providesModule T
|
|
*/
|
|
|
|
=====================================output=====================================
|
|
/**
|
|
* @providesModule T
|
|
*/
|
|
|
|
================================================================================
|
|
`;
|