I am encountering an error in my Node application when using "jasmine":"^2.5.2". The error message states:
TypeError: jasmine.addMatchers is not a function
This error occurs when running jasmine-node spec
from the terminal, even with a simple example like the one below.
What might be causing this issue and how can it be resolved?
function helloWorld() {
return "Hello world!";
}
describe('keyframes-tool', function () {
it("says hello", function() {
expect(helloWorld()).toEqual("Hello world!");
});
});