Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueweiand committed Mar 7, 2024
1 parent 7994271 commit 1cbe37e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ pids

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
.vercel
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:unit": "jest --config ./jest-unit.json",
"test:e2e": "jest --config ./jest-e2e.json",
"vercel-build": "yarn build"
"test:e2e": "jest --config ./jest-e2e.json"
},
"dependencies": {
"@nestjs/cache-manager": "2.2.1",
Expand All @@ -39,11 +38,11 @@
"rxjs": "^7.8.1",
"stripe": "14.19.0",
"uuid": "9.0.1",
"@nestjs/devtools-integration": "0.1.6",
"zod": "3.22.4"
},
"devDependencies": {
"@nestjs/cli": "^10.0.0",
"@nestjs/devtools-integration": "0.1.6",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
"@swc/cli": "0.3.9",
Expand Down
6 changes: 3 additions & 3 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { PersistenceModule } from './infra/persistence/persistence.module';

@Module({
imports: [
DevtoolsModule.register({
http: process.env.NODE_ENV !== 'production',
}),
// DevtoolsModule.register({
// http: process.env.NODE_ENV !== 'production',
// }),
PersistenceModule.register({
type: 'mongoose',
global: true,
Expand Down
5 changes: 3 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"version": 2,
"builds": [
{
"src": "main.js",
"src": "dist/main.js",
"use": "@vercel/node"
}
],
"outputDirectory": "dist",
"routes": [
{
"src": "/(.*)",
"dest": "main.js",
"dest": "dist/main.js",
"methods": [
"GET",
"POST",
Expand Down

0 comments on commit 1cbe37e

Please sign in to comment.