Skip to content

Commit

Permalink
remove skipped tests (#1117)
Browse files Browse the repository at this point in the history
* remove skipped tests

* update test package.json

* set 4 workers

* handle case when argumen is an invalid address

* handle case when error occure while API call fails

* handle case when an error occure for graphql query

* add handle for logger errors

* move unit tests to /unit/services

* move common spec in unit/services

* add afterEach hook

* add separate warm and uses data from warm instead of duplicated code

* revert changes

* refactor metric spec

* move to unit tests directory

* add shards.spec.ts

* add scresults.spec.ts

* revert caching.e2e-spec.ts

* remove caching ( duplicated )

* replace dapp.config.spec.ts

* fix

* remove dapp config test

* add providers.spec.ts

* remove e2e providers

* update providers.spec.ts

* update api.config.spec.ts

* add apiConfigService spy

* update api.config.spec.ts

* add transactions.spec.ts

* update transactions.spec.ts

* update collections.spec.ts

* update collections.spec.ts

* update collections.spec.ts

* update collections.spec.ts

* update interface

* add getLogo specs

* remove duplicate collections spec tests

* move data-api.spec in unit test directory

* revert data-api

* update esdt.address.spec.ts

* update esdt.address.spec.ts

* update esdt.address.spec.ts

* fix after review

* fix after review scresults

* add nfts.spec.ts
  • Loading branch information
cfaur09 authored Nov 7, 2023
1 parent f91cb1e commit cb1c1f9
Show file tree
Hide file tree
Showing 62 changed files with 1,821 additions and 2,745 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"test:e2e": "jest --config ./src/test/jest-e2e.json --forceExit --maxWorkers=4",
"test:e2e:warm": "npm run copy-e2e-mainnet-config & nest build & jest --config ./src/test/jest-e2e-warm.json --forceExit",
"test:e2e:warm:mocked": "npm run copy-e2e-mocked-mainnet-config & nest build & jest --config ./src/test/jest-e2e-warm.json --forceExit",
"test:e2e:cov": "jest --config ./src/test/jest-e2e.json --coverage --forceExit --maxWorkers=4",
"test:e2e:cov": "node --expose-gc --no-compilation-cache ./node_modules/.bin/jest --config ./src/test/jest-e2e.json --coverage --forceExit --logHeapUsage --maxWorkers=4",
"test:e2e:local": "npm run test:e2e:warm & npm run test:e2e",
"test:api": "jest --config ./src/test/jest-api.json --runInBand --detectOpenHandles --forceExit",
"test:graph": "jest --config ./src/test/jest-graph-spec.json --runInBand --detectOpenHandles --forceExit",
Expand Down
2 changes: 1 addition & 1 deletion src/common/indexer/indexer.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface IndexerInterface {

getToken(identifier: string): Promise<Token>

getCollection(identifier: string): Promise<Collection>
getCollection(identifier: string): Promise<Collection | undefined>

getTransaction(txHash: string): Promise<Transaction | null>

Expand Down
2 changes: 1 addition & 1 deletion src/common/indexer/indexer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class IndexerService implements IndexerInterface {
}

@LogPerformanceAsync(MetricsEvents.SetIndexerDuration)
async getCollection(identifier: string): Promise<Collection> {
async getCollection(identifier: string): Promise<Collection | undefined> {
return await this.indexerInterface.getCollection(identifier);
}

Expand Down
38 changes: 0 additions & 38 deletions src/test/integration/common/protocol.common.e2e-spec.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/test/integration/common/queue-worker.module.e2e-spec.ts

This file was deleted.

Loading

0 comments on commit cb1c1f9

Please sign in to comment.