Skip to content

Commit

Permalink
refactor: remove end-to-end testing configurations and related files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
flopez7 authored Feb 26, 2025
1 parent f644aa0 commit abf31c2
Show file tree
Hide file tree
Showing 29 changed files with 5 additions and 2,305 deletions.
3 changes: 0 additions & 3 deletions packages/apps/dashboard/server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ S3_BUCKET=
#Web3
WEB3_ENV=
RPC_URL_POLYGON=

# e2e testing
E2E_TESTING_EMAIL_ADDRESS=
3 changes: 0 additions & 3 deletions packages/apps/dashboard/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ $ yarn run start:prod
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```
Expand Down
3 changes: 1 addition & 2 deletions packages/apps/dashboard/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"
},
"dependencies": {
"@human-protocol/sdk": "*",
Expand Down

This file was deleted.

68 changes: 0 additions & 68 deletions packages/apps/dashboard/server/test/app.e2e-spec.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/apps/dashboard/server/test/jest-e2e.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/apps/fortune/exchange-oracle/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ $ yarn run start:debug
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```
Expand Down
1 change: 0 additions & 1 deletion packages/apps/fortune/exchange-oracle/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"setup:local": "ts-node ./test/setup.ts",
"generate-env-doc": "ts-node scripts/generate-env-doc.ts"
},
Expand Down
24 changes: 0 additions & 24 deletions packages/apps/fortune/exchange-oracle/server/test/app.e2e-spec.ts

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions packages/apps/fortune/recording-oracle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ $ yarn run start:debug
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```
Expand Down
1 change: 0 additions & 1 deletion packages/apps/fortune/recording-oracle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:e2e": "jest --config ./test/jest-e2e.json",
"postgres": "docker compose up -d postgres",
"docker": "docker compose up -d",
"local": "docker compose down && (concurrently --hide 0 \"yarn docker\" \"yarn recording-oracle:dev\" )",
Expand Down
24 changes: 0 additions & 24 deletions packages/apps/fortune/recording-oracle/test/app.e2e-spec.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/apps/fortune/recording-oracle/test/jest-e2e.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/apps/job-launcher/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ $ yarn run start:debug
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```
Expand Down
1 change: 0 additions & 1 deletion packages/apps/job-launcher/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "export POSTGRES_DATABASE=job-launcher POSTGRES_PASSWORD=qwerty POSTGRES_USER=default POSTGRES_HOST=0.0.0.0 NODE_ENV=test-e2e && docker compose up -d postgres && yarn migration:run && jest --config ./test/jest-e2e.json; testStatus=$?; docker rm -f postgres; exit $testStatus",
"generate-env-doc": "ts-node scripts/generate-env-doc.ts"
},
"dependencies": {
Expand Down
14 changes: 4 additions & 10 deletions packages/apps/job-launcher/server/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { CronJobModule } from './modules/cron-job/cron-job.module';
import { SnakeCaseInterceptor } from './common/interceptors/snake-case';
import { WebhookModule } from './modules/webhook/webhook.module';
import { EnvConfigModule } from './common/config/config.module';
import { E2E_TEST_ENV } from './common/constants';
import { ExceptionFilter } from './common/exceptions/exception.filter';
import { ScheduleModule } from '@nestjs/schedule';
import { StatisticModule } from './modules/statistic/statistic.module';
Expand Down Expand Up @@ -52,15 +51,10 @@ import { TransformEnumInterceptor } from './common/interceptors/transform-enum.i
imports: [
ScheduleModule.forRoot(),
ConfigModule.forRoot({
ignoreEnvFile: process.env.NODE_ENV === E2E_TEST_ENV,
...(process.env.NODE_ENV !== E2E_TEST_ENV && {
envFilePath: process.env.NODE_ENV
? `.env.${process.env.NODE_ENV as string}`
: '.env',
}),
...(process.env.NODE_ENV !== E2E_TEST_ENV && {
validationSchema: envValidator,
}),
envFilePath: process.env.NODE_ENV
? `.env.${process.env.NODE_ENV as string}`
: '.env',
validationSchema: envValidator,
}),
DatabaseModule,
HealthModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,4 @@ export const HCAPTCHA_NOT_PRESENTED_LABEL = 'Not presented';
export const RESEND_EMAIL_VERIFICATION_PATH = '/auth/resend-email-verification';
export const LOGOUT_PATH = '/auth/logout';

export const E2E_TEST_ENV = 'test-e2e';

export const MUTEX_TIMEOUT = 2000; //ms
52 changes: 0 additions & 52 deletions packages/apps/job-launcher/server/test/e2e/app.e2e-spec.ts

This file was deleted.

Loading

0 comments on commit abf31c2

Please sign in to comment.