Giter Site home page Giter Site logo

Comments (4)

NarHakobyan avatar NarHakobyan commented on June 24, 2024 1

e2e test not yet integrated. I need to find free time to do that, or if you can feel free to fork and open pull-request :)

from awesome-nest-boilerplate.

pietrzakadrian avatar pietrzakadrian commented on June 24, 2024

I'm trying to find a problem and I think I know.

config.service.ts:

    public get(key: string): string {
        return process.env[key];
    }

You return such an object in get typeOrmConfig(): TypeOrmModuleOptions

        return {
            entities,
            migrations,
            keepConnectionAlive: true,
            type: 'postgres',
            host: this.get('POSTGRES_HOST'),
            port: this.getNumber('POSTGRES_PORT'),
            username: this.get('POSTGRES_USERNAME'),
            password: this.get('POSTGRES_PASSWORD'),
            database: this.get('POSTGRES_DATABASE'),
            dropSchema: this.nodeEnv === 'test',
            migrationsRun: true,
            logging: this.nodeEnv === 'development',
            namingStrategy: new SnakeNamingStrategy(),
        };

If I console.log this object in dev/prod mode, the values in the object match.
But when I do console.log for tests:

       [ '/Users/pietrzakadrian/Desktop/Code/production-server/src/shared/services/../../modules/**/*.entity{.ts,.js}' ],
      migrations:
       [ '/Users/pietrzakadrian/Desktop/Code/production-server/src/shared/services/../../migrations/*{.ts,.js}' ],
      keepConnectionAlive: true,
      type: 'postgres',
      host: undefined,
      port: NaN,
      username: undefined,
      password: undefined,
      database: undefined,
      synchronize: true,
      dropSchema: true,
      migrationsRun: true,
      logging: false,
      namingStrategy: SnakeNamingStrategy {} }

please correct it urgently.

from awesome-nest-boilerplate.

pietrzakadrian avatar pietrzakadrian commented on June 24, 2024

Could I ask you to do this as soon as you find time?
I am doing this project for my studies and e2e tests are required.

Thanks! :)

from awesome-nest-boilerplate.

antennaio avatar antennaio commented on June 24, 2024

There are a few improvements in this pull request #79 :)

from awesome-nest-boilerplate.

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.