How to use the gemini-core.SetsBuilder function in gemini-core

To help you get started, we’ve selected a few gemini-core examples, based on popular ways it is used in public projects.

github gemini-testing / gemini / test / unit / test-reader.js View on Github external
        beforeEach(() => createSetsBuilder = sandbox.spy(SetsBuilder, 'create'));
github gemini-testing / hermione / test / lib / test-reader / index.js View on Github external
beforeEach(() => {
        sandbox.spy(SetsBuilder, 'create');
        sandbox.stub(SetsBuilder.prototype, 'useFiles').returnsThis();
        sandbox.stub(SetsBuilder.prototype, 'useSets').returnsThis();
        sandbox.stub(SetsBuilder.prototype, 'useBrowsers').returnsThis();

        sandbox.stub(SetsBuilder.prototype, 'build').resolves({groupByBrowser: () => ({})});

        sandbox.stub(TestParser, 'prepare');
        sandbox.spy(TestParser, 'create');
        sandbox.stub(TestParser.prototype, 'applySkip').returnsThis();
        sandbox.stub(TestParser.prototype, 'applyConfigController').returnsThis();
        sandbox.stub(TestParser.prototype, 'applyGrep').returnsThis();
        sandbox.stub(TestParser.prototype, 'loadFiles').returnsThis();
        sandbox.stub(TestParser.prototype, 'parse');

        sandbox.spy(TestSkipper, 'create');
    });