Imagine if you could run your generated tests within your yeoman generator tests, just as simple as dreaming within a dream... Lol
Install
$ npm install --save-dev yo-inception
or
$ yarn add --dev yo-inception
Examples
More examples coming soon...
Jest Example
;
Copy and process package.json into tempDir
const Inception = ;const path = ;const inception = path;inception;
Install dependencies into tempDir (package.json required in tempDir)
const Inception = ;const path = ;const inception = path;// with npminception;// or with yarninception;
Run test command on generated code (node_modules needs to be present in tempDir)
const Inception = ;const path = ;const inception = path;inception ;
Clean TempDir
const Inception = ;const path = ;const inception = path;inception; // removes tempDir