mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
426c8bf918
refs: https://github.com/TryGhost/Toolbox/issues/133 - instead of just a collection of utils, we now have a class that manages fixtures - this should allow us to change the path to fixtures, e.g. between prod/dev and test, so that different fixtures can be loaded by default - also makes it easier to test the fixture manager code itself
10 lines
233 B
JavaScript
10 lines
233 B
JavaScript
const {fixtureManager} = require('../../schema/fixtures');
|
|
|
|
module.exports.config = {
|
|
transaction: true
|
|
};
|
|
|
|
module.exports.up = async function insertFixtures(options) {
|
|
return await fixtureManager.addAllFixtures(options);
|
|
};
|