prettier/tests/typeapp_perf/__snapshots__/jsfmt.spec.js.snap

94 lines
1.9 KiB
Plaintext

exports[`test test1.js 1`] = `
"/* This test ensures that the code below does not take a long time to check. If
* this test is taking a very long time to complete, there is a bug. */
class A {}
type B<T> = A & {
+a: () => B<T>;
+b: () => B<T>;
+c: () => B<T>;
+d: () => B<T>;
+e: () => B<T>;
+f: () => B<T>;
+g: () => B<T>;
+h: () => B<T>;
+i: () => B<T>;
};
declare var b: B<any>;
(b: B<any>);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* This test ensures that the code below does not take a long time to check. If
* this test is taking a very long time to complete, there is a bug. */
class A {}
type B<T> =
& A
& {
+a: () => B<T>,
+b: () => B<T>,
+c: () => B<T>,
+d: () => B<T>,
+e: () => B<T>,
+f: () => B<T>,
+g: () => B<T>,
+h: () => B<T>,
+i: () => B<T>
};
declare var b: B<any>;
(b: B<any>);
"
`;
exports[`test test2.js 1`] = `
"/* This test ensures that the code below does not take a long time to check. If
* this test is taking a very long time to complete, there is a bug. */
class A {}
type B<T> = A & {
+a: (x: B<T>) => void;
+b: (x: B<T>) => void;
+c: (x: B<T>) => void;
+d: (x: B<T>) => void;
+e: (x: B<T>) => void;
+f: (x: B<T>) => void;
+g: (x: B<T>) => void;
+h: (x: B<T>) => void;
+i: (x: B<T>) => void;
};
declare var b: B<any>;
(b: B<any>);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* This test ensures that the code below does not take a long time to check. If
* this test is taking a very long time to complete, there is a bug. */
class A {}
type B<T> =
& A
& {
+a: (x: B<T>) => void,
+b: (x: B<T>) => void,
+c: (x: B<T>) => void,
+d: (x: B<T>) => void,
+e: (x: B<T>) => void,
+f: (x: B<T>) => void,
+g: (x: B<T>) => void,
+h: (x: B<T>) => void,
+i: (x: B<T>) => void
};
declare var b: B<any>;
(b: B<any>);
"
`;