Search code examples
meteormeteor-accounts

TinyTest against onUse DB


Assuming they aren't, is there some way to make meteor test-packages ./ use the same DB as meteor? I'd like to add some package tests that rely on user data.


Solution

  • Just like meteor run, meteor test-packages takes into account the MONGO_URL setting.

    Thus,

    MONGO_URL=mongodb://127.0.0.1:27017/mydb meteor test packages ./
    

    will use the specified database.