Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/typescript_import_export/__snapshots__/jsfmt.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`type-modifier.ts 1`] = ` | ||
====================================options===================================== | ||
parsers: ["typescript"] | ||
printWidth: 80 | ||
| printWidth | ||
=====================================input====================================== | ||
export type { SomeThing }; | ||
export type { A as B }; | ||
export type { B as C } from './a'; | ||
export type { foo } from 'bar'; | ||
export type * from 'bar'; | ||
export type { foo }; | ||
// this should be treated as a normal import statement | ||
import type from './foo'; | ||
import type { SomeThing } from "./some-module.js"; | ||
import type { foo, bar } from 'baz'; | ||
import type { foo as bar } from 'baz'; | ||
import type * as foo from './bar'; | ||
import type foo from 'bar'; | ||
import type foo, { bar } from 'bar'; | ||
=====================================output===================================== | ||
export type { SomeThing }; | ||
export type { A as B }; | ||
export type { B as C } from "./a"; | ||
export type { foo } from "bar"; | ||
export type * from "bar"; | ||
export type { foo }; | ||
// this should be treated as a normal import statement | ||
import type from "./foo"; | ||
import type { SomeThing } from "./some-module.js"; | ||
import type { foo, bar } from "baz"; | ||
import type { foo as bar } from "baz"; | ||
import type * as foo from "./bar"; | ||
import type foo from "bar"; | ||
import type foo, { bar } from "bar"; | ||
================================================================================ | ||
`; |