I’ve tried putting the code in /tests/ and /tests/jasmine/ but neither file location gets include when running tests.
it needs to be one of these dirs:
/tests/jasmine/client/integration
/tests/jasmine/client/unit
/tests/jasmine/server/integration
/tests/jasmine/server/unit
Jasmine is actually 4 independent testing frameworks in one
So to register a single new matcher globally, it must be copied to all 4 locations?
You can also create a symlink from all the directories to one outside like this:
/tests/jasmine/client/integration/common > /tests/jasmine/common
/tests/jasmine/client/unit/common > /tests/jasmine/common
/tests/jasmine/server/integration/common > /tests/jasmine/common
/tests/jasmine/server/unit/common > /tests/jasmine/common
Then have all your helpers and common code in
/tests/jasmine/common
1 Like