Feature: export statements

Scenario: export { a }
  Given file "a.ts" is
    """
    const a = 1;
    export { a };
    """
  And file "b.ts" is import { a } from './a';
  When analyzing "tsconfig.json"
  Then the result is {}

Scenario: export { a } from file
  Given file "a.ts" is export const a = 1;
  Given file "b.ts" is
    """
    import { a } from "./a";
    export { a };
    """
  And file "c.ts" is import { a } from './b';
  When analyzing "tsconfig.json"
  Then the result is {}

Feature: export statements

Scenario: export { a }
  Given file "a.ts" is
    """
    const a = 1;
    export { a };
    """
  And file "b.ts" is import { a } from './a';
  When analyzing "tsconfig.json"
  Then the result is {}

Scenario: export { a } from file
  Given file "a.ts" is export const a = 1;
  Given file "b.ts" is
    """
    import { a } from "./a";
    export { a };
    """
  And file "c.ts" is import { a } from './b';
  When analyzing "tsconfig.json"
  Then the result is {}

Scenario: Include files from sub-folder, without error
  Given file "x/a.ts" is
    """
    export type A = 1;
    export type A_unused = 2;
    """
  And file "b.ts" is
    """
    import { A } from './x/a'
    export const a: A = 0
    """
  When analyzing "tsconfig.json"
  Then the result is { "b.ts": ["a"], "x/a.ts": ["A_unused"] }

Add test of import from sub-folder
Add test of import from sub-folder
