<commit_before>## Description

Inspector Leyati runs unit tests from templates for a collection of React components and saves the successful and retained into a final unit test script.

The location and name of a component are placed into given template that is saved as an "alpha test script". The tests in this script are run and those passed are written to a final test script. Failed tests are not written to the final test script unless they have the annotation `@leyati-retain` right above them.


Leyati uses [babel](https://babeljs.io/), [babylon](https://github.com/babel/babylon), and [Mocha](https://mochajs.org/).



## Installation

`npm install --save eshal`



## API

`bin/leyati.js  <command>`
  (commands: "init")


`bin/leyati.js  <template file name> <test script destination> <source location> [component name]`

- Inspector

`new Inspector(templateFilename, testsPath, componentName)`
<commit_msg>Fixed a critical variable reference in bin/leyati.js<commit_after>## Description

Inspector Leyati runs unit tests from templates for a collection of React components and saves the successful and retained into a final unit test script.

The location and name of a component are placed into given template that is saved as an "alpha test script". The tests in this script are run and those passed are written to a final test script. Failed tests are not written to the final test script unless they have the annotation `@leyati-retain` right above them.


Leyati uses [babel](https://babeljs.io/), [babylon](https://github.com/babel/babylon), and [Mocha](https://mochajs.org/).



## Installation

`npm install --save leyati`



## API

`bin/leyati.js  <command>`
  (commands: "init")


`bin/leyati.js  <template file name> <test script destination> <source location> [component name]`

- Inspector

`new Inspector(templateFilename, testsPath, componentName)`

{'fraction_non_alphanumeric': 0.09052183173588925, 'fraction_numerical': 0.0, 'mean_word_length': 4.57566765578635, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '4451643', 'n_tokens_mistral': 543, 'n_tokens_neox': 506, 'n_words': 236}