[SOLVED] Unit Testing a component that uses value-converter

How would i do it if i need to unit test a component that uses a global value-converter in the view ?. i am getting error that it cannot be found etc.

1 Like

In your stage component, you can do:

.withResource('path/to/the/vc')

does it take a array ? cause i need to pass the element i want to test also correct ?

Yes it seems it does. got it working thanks.

1 Like