|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`react-studio-template-renderer-helper transpile fails to transpile with ScriptTarget ESNext 1`] = `"ScriptTarget 99 not supported with type declarations enabled, expected one of [0,1,2,3,4,5,6,7,8]"`; |
| 4 | + |
| 5 | +exports[`react-studio-template-renderer-helper transpile fails to transpile with ScriptTarget Latest 1`] = `"ScriptTarget 99 not supported with type declarations enabled, expected one of [0,1,2,3,4,5,6,7,8]"`; |
| 6 | + |
| 7 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES3 1`] = ` |
| 8 | +"import React from \\"react\\"; |
| 9 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 10 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 11 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 12 | + overrides?: EscapeHatchProps | undefined | null; |
| 13 | +}>; |
| 14 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 15 | +" |
| 16 | +`; |
| 17 | +
|
| 18 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES5 1`] = ` |
| 19 | +"import React from \\"react\\"; |
| 20 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 21 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 22 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 23 | + overrides?: EscapeHatchProps | undefined | null; |
| 24 | +}>; |
| 25 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 26 | +" |
| 27 | +`; |
| 28 | +
|
| 29 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2015 1`] = ` |
| 30 | +"import React from \\"react\\"; |
| 31 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 32 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 33 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 34 | + overrides?: EscapeHatchProps | undefined | null; |
| 35 | +}>; |
| 36 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 37 | +" |
| 38 | +`; |
| 39 | +
|
| 40 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2016 1`] = ` |
| 41 | +"import React from \\"react\\"; |
| 42 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 43 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 44 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 45 | + overrides?: EscapeHatchProps | undefined | null; |
| 46 | +}>; |
| 47 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 48 | +" |
| 49 | +`; |
| 50 | +
|
| 51 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2017 1`] = ` |
| 52 | +"import React from \\"react\\"; |
| 53 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 54 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 55 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 56 | + overrides?: EscapeHatchProps | undefined | null; |
| 57 | +}>; |
| 58 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 59 | +" |
| 60 | +`; |
| 61 | +
|
| 62 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2018 1`] = ` |
| 63 | +"import React from \\"react\\"; |
| 64 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 65 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 66 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 67 | + overrides?: EscapeHatchProps | undefined | null; |
| 68 | +}>; |
| 69 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 70 | +" |
| 71 | +`; |
| 72 | +
|
| 73 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2019 1`] = ` |
| 74 | +"import React from \\"react\\"; |
| 75 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 76 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 77 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 78 | + overrides?: EscapeHatchProps | undefined | null; |
| 79 | +}>; |
| 80 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 81 | +" |
| 82 | +`; |
| 83 | +
|
| 84 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2020 1`] = ` |
| 85 | +"import React from \\"react\\"; |
| 86 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 87 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 88 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 89 | + overrides?: EscapeHatchProps | undefined | null; |
| 90 | +}>; |
| 91 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 92 | +" |
| 93 | +`; |
| 94 | +
|
| 95 | +exports[`react-studio-template-renderer-helper transpile successfully transpiles with ScriptTarget ES2021 1`] = ` |
| 96 | +"import React from \\"react\\"; |
| 97 | +import { ViewTestProps } from \\"./ViewTest\\"; |
| 98 | +import { EscapeHatchProps } from \\"@aws-amplify/ui-react\\"; |
| 99 | +export declare type CustomParentAndChildrenProps = React.PropsWithChildren<Partial<ViewTestProps> & { |
| 100 | + overrides?: EscapeHatchProps | undefined | null; |
| 101 | +}>; |
| 102 | +export default function CustomParentAndChildren(props: CustomParentAndChildrenProps): React.ReactElement; |
| 103 | +" |
| 104 | +`; |
0 commit comments