1

I am preparing a workaround for my problem described in my socketStream/Node.js/Karma question.

I decided that karma is really not required to run Jasmine if you have a socketstream server to run your code anyway.

I include jasmine files through the SocketStream client code libs folder and that works (after editing the TestRunner.html file to make it a SocketStream view). The problem now is that my spec files to run the actual tests only run if I put them in the 'libs' folder.

I'd like to put them in a '/tests/specs' folder but when I do that they are delivered as modules. Is there any way to mark a folder to behave the same as the 'libs' folder(s) i.e. not pack the content as a module?

Community
  • 1
  • 1
Gert
  • 220
  • 1
  • 3
  • 13

1 Answers1

1

There is no easy way. However you can bundle up your tests in a content string and serve it with.

ss.client.assets.send('tests',--content--)

Henrik Vendelbo
  • 176
  • 2
  • 3