GithubHelp home page GithubHelp logo

Comments (3)

RobinCK avatar RobinCK commented on May 18, 2024

You can use this code:
https://github.com/RobinCK/typeorm-fixtures#programmatically-loading-fixtures
after each test clear database and repeat load dataset

from typeorm-fixtures.

theo-bittencourt avatar theo-bittencourt commented on May 18, 2024

Yep! I'm using that already.

But I'm not sure whether that will continue to work fine for complex relationships. It's been harder to set up the e2e tests as the project grows up because we need to look up for multiple files to track the correct relationships.

Coming from Rails, I'm missing something like FactoryBot to build these data for tests.

I can't figure out yet how Node devs are setting up that data.

from typeorm-fixtures.

moulinraphael avatar moulinraphael commented on May 18, 2024

Hey I'm missing the same. The way Rails is handling data during tests with FactoryBot is so useful.

Is it possible not to load all the fixtures but only specific ones (and then all recursive references) ?

from typeorm-fixtures.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.