Comments (4)
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.
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.
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.
There are a few improvements in this pull request #79 :)
from awesome-nest-boilerplate.
Related Issues (20)
- AuthController unit test not working HOT 2
- controller return type
- ERROR [ExceptionsHandler] No metadata for "UserEntity" was found. HOT 1
- [Feature Request] Add logging with verbosity levels HOT 1
- Error received from user registration endpoint HOT 2
- Error when running "yarn migration:generate migration_name" HOT 4
- No resolvers provided! nestjs-i18n won't workt properly, please follow the quick-start guide: https://nestjs-i18n.com/quick-start HOT 1
- Project runs but is not being served HOT 1
- error TS2550: Property 'replaceAll' does not exist on type 'string'. HOT 5
- Sweep: Write a test for src/modules/auth/auth.controller.ts HOT 3
- Eslint Not working HOT 1
- HttpExceptionFilter to translation interceptor
- ERROR [ExceptionsHandler] You need to use @UseDto on class (ClassNameEntity) be able to call toDto function HOT 2
- main.hmr.ts is not working HOT 1
- e2e test fails with "No CLS namespace defined in your app ... please call initializeTransactionalContext()" HOT 2
- e2e test fails with "No context available. ns.run() or ns.bind() must be called first."
- yarn build:prod fail
- LLM Integration using Langchain
- Use bun for development (has best performance) HOT 1
- Update typeorm to MikroOrm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awesome-nest-boilerplate.