Where is a Velocity Jasmine custom matcher registered globally?


#1

I’ve tried putting the code in /tests/ and /tests/jasmine/ but neither file location gets include when running tests.


#2

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


#3

So to register a single new matcher globally, it must be copied to all 4 locations?


#4

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