Browserify - multiple entry points

前端 未结 4 1545
夕颜
夕颜 2020-12-13 18:55

I am using Browserify within gulp. I am trying to compile down my tests to a single file as well. But unlike my main app, which I have working just fine, I am having trouble

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 19:14

    For start, you can write a suite.js to require all the tests which you want to run and browserify them.

    You can see two examples from my project https://github.com/mallim/sbangular.

    One example for grunt-mocha-phantomjs

    https://github.com/mallim/sbangular/blob/master/src/main/resources/js/suite.js

    One example for protractor

    https://github.com/mallim/sbangular/blob/master/src/main/resources/js/suite.js

    This is just a start and I am sure there are more fancy ways available.

提交回复
热议问题