How to use the typeorm-seeding.setConnection function in typeorm-seeding

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

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github w3tecch / express-typescript-boilerplate / test / e2e / utils / server.ts View on Github external
export const prepareServer = async (options?: { migrate: boolean }) => {
    const settings = await bootstrapApp();
    if (options && options.migrate) {
        await migrateDatabase(settings.connection);
    }
    setConnection(settings.connection);
    return settings;
};

typeorm-seeding

🌱 A delightful way to seed test data into your database.

MIT
Latest version published 4 years ago

Package Health Score

47 / 100
Full package analysis

Similar packages