Skip to content

How to add additional libraries (e.g. sinon) to use in tests? #94

Open
@marekrogala

Description

@marekrogala

In some of the tests we do not use server/client calls at all (in fact, this is the case for most of our unit tests). However, we'd like to execute them with gagarin to have just one place for all tests.

How can we add additional libraries to be available to the test code which is not executed on Meteor?

For example, we'd like to use a mocking library such as sinon. We tried using meteor package for sinon, but as I understand this adds sinon to scope of the Meteor app, and not to the scope of the gagarin tests code. Currently we'll probably add sinon to package.json in a fork and use a require, but probably it should be possible to do that in a more flexible way?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions