Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bugzilla-fixtures

mozilla-b2g-bot11Apache20.0.1

Bugzilla test fixtures

bugzilla, test, fixtures

readme

bugzilla-fixtures

Bugzilla fixtures for shepherd tests

Factories

Factories are based on object-factory... The top level module exposes the following factories:

  • Bug
  • Flag
  • Attachment
  • SuggestedReviewer

All factories follow the design in the rest bugzilla api.

Usage

// single fixture
var Bug = require('bugzilla-fixtures/bug');

var myBug = Bug.create();

All the properties on the bug can be overridden and overrides are done with a deep merge.

To best figure out how to use the factories you should actually read the factory files and maybe use the object viewer (see make test for output).

changelog

0.0.1

  • initial version with Bug, Attachment, Flag and SuggestedReviewers