<commit_before>Feature: ts-unused-exports

Scenario: Unused export const
  Given file "a.ts" is export const a = 1;
  When analyzing "tsconfig.json"
  Then the result at a.ts is ["a"]

Scenario: Unused export default
  Given file "a.ts" is export default 1;
  When analyzing "tsconfig.json"
  Then the result at a.ts is ["default"]

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

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

Scenario: Export { symbol } from
  Given file "a.ts" is export const a = 1;
  And file "b.ts" is export { a } from './a';
  And file "c.ts" is import { a } from './b';
  When analyzing "tsconfig.json"
  Then the result is {}<commit_msg>Add a simple test with 1 unused export<commit_after>Feature: ts-unused-exports

Scenario: Unused export const
  Given file "a.ts" is export const a = 1;
  When analyzing "tsconfig.json"
  Then the result at a.ts is ["a"]

Scenario: Unused export default
  Given file "a.ts" is export default 1;
  When analyzing "tsconfig.json"
  Then the result at a.ts is ["default"]

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

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

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

Scenario: Export { symbol } from
  Given file "a.ts" is export const a = 1;
  And file "b.ts" is export { a } from './a';
  And file "c.ts" is import { a } from './b';
  When analyzing "tsconfig.json"
  Then the result is {}
{'fraction_non_alphanumeric': 0.11567877629063097, 'fraction_numerical': 0.00621414913957935, 'mean_word_length': 3.095890410958904, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6851512', 'n_tokens_mistral': 721, 'n_tokens_neox': 695, 'n_words': 308}