score:0

Accepted answer

i ended up just importing the function from the helper file and calling it

import { getsum } from "../helpers/helpers.js;"

describe('app', () => {

it('correctly calculates the sum of 1 and 3', () => {
        assert.equal(getsum(1, 3), 4);
    });

});

this works, however, it doesn't seem that optimized as the i feel that an instance of the react component should already contain this; but this is a working solution.


Related Query

More Query from same tag