apps/codelab/src/app/components/babel-test-runner/babel-helpers.ts
Function tsAstTestSuite
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function tsAstTestSuite(tests) {
return function test(files) {
const results = tests.map(({ title }) => ({ title, pass: false }));
const astCache = {};
Function test
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function test(files) {
const results = tests.map(({ title }) => ({ title, pass: false }));
const astCache = {};
function getAst(filePath) {
Consider simplifying this complex logical expression. Open
Open
if (
decorator.expression &&
ts.isCallExpression(decorator.expression) &&
decorator.expression.arguments &&
decorator.expression.arguments[0] &&