You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
I have just started using this library in my project and so far have some mock data being returned as per below in one of my specs:
beforeEach(function() {
jasmine.getJSONFixtures().fixturesPath='base/mocks';
var mockData = jasmine.getJSONFixtures().load('someData.json');
someData= mockData['someData.json'];
});
I was wondering, can the fixturesPath be set globally for all specs so I don't have to add this in for each spec file?
Also, if I call load() on the fixtures singleton like in the example above, does that mean that json object is available in other tests located in different spec files?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have just started using this library in my project and so far have some mock data being returned as per below in one of my specs:
I was wondering, can the fixturesPath be set globally for all specs so I don't have to add this in for each spec file?
Also, if I call load() on the fixtures singleton like in the example above, does that mean that json object is available in other tests located in different spec files?
The text was updated successfully, but these errors were encountered: