Closed k3t4ngit closed 6 months ago
As you can see framework options is picked from options only in case of cli.js
when we are directly importing the ngentest function and using it the cli does not get called I believe.
Resulting the test generated are always in jest and not in karma.
The proposed solution is to pick framework from options when we are directly importing the ngentest in our code.
I am working on a vscode extesnion using this which already being published at https://marketplace.visualstudio.com/items?itemName=KetanTiwari.ngen-utc-vscode
and here is the code - https://github.com/k3t4ngit/ngen-utc-vscode.
I will raise a pr for the same.
Resolved it by including UTIL like this and assigning framework to it manually
const Util = require('ngentest/lib/util.js');
As you can see framework options is picked from options only in case of cli.js
when we are directly importing the ngentest function and using it the cli does not get called I believe.
Resulting the test generated are always in jest and not in karma.
The proposed solution is to pick framework from options when we are directly importing the ngentest in our code.
I am working on a vscode extesnion using this which already being published at https://marketplace.visualstudio.com/items?itemName=KetanTiwari.ngen-utc-vscode
and here is the code - https://github.com/k3t4ngit/ngen-utc-vscode.
I will raise a pr for the same.