allenhwkim / ngentest

Angular6+ Unit Test Generator For Components, Directive, Services, and Pipes
https://ngentest.github.io
MIT License
144 stars 60 forks source link

How do we fix exported functions? #34

Closed t0n1n3 closed 3 years ago

t0n1n3 commented 4 years ago

Hi,

I have a ts file in which I'm exporting some functions directly. Example -

export function routerTransitionRight() {
  return slideToRight();
}

I'm importing it in my component as

import { routerTransitionLeft } from './list.animations';

When testing for the component I'm getting the error

list_animations_1.routerTransitionRight is not a function

Any way to fix it?

allenhwkim commented 3 years ago

sorry, this repo. only target Angular ones. It still supports class structure, but not function one.