Ghost/core/server/data/schema/fixtures/index.js
Hannah Wolfe b781e47cb9
Changed to use different fixtures during testing
- this keeps production and test fixtures separate, so that changing the prod fixtures doesn't change the shape of our tests.
- we may still want to test that the production fixtures do what we expect, but that can be handled in a separate integration test, by specifically setting the fixture path
2021-11-16 14:03:42 +00:00

9 lines
307 B
JavaScript

const FixtureManager = require('./fixture-manager');
const config = require('../../../../shared/config');
const fixturePath = config.get('paths').fixtures;
const fixtures = require(fixturePath);
module.exports.FixtureManager = FixtureManager;
module.exports.fixtureManager = new FixtureManager(fixtures);