From 7c181f48f181009c15a8f6e453e317e20be0a5a9 Mon Sep 17 00:00:00 2001 From: Scott Twiname Date: Wed, 11 Dec 2024 09:29:50 +1300 Subject: [PATCH] Address feedback --- package.json | 4 ++-- packages/cli/test/build/package.json | 4 ++-- packages/cli/test/schemaTest/package.json | 4 ++-- packages/utils/src/graphql/graphql.spec.ts | 1 - test/docker-compose.yaml | 3 +-- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index ab9a63c7d2..aa0f195882 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "lint": "eslint packages --ext .ts", "test": "TZ=utc jest --coverage", "test:ci": "TZ=utc jest --testRegex='.*\\.(spec|test)\\.ts$'", - "test:all": "TZ=utc node --expose-gc ./node_modules/.bin/jest --logHeapUsage --testRegex='.*\\.(spec|test)\\.ts$' --forceExit --ci -w=2 --clearMocks", - "test:docker": "docker-compose -f test/docker-compose.yaml up --remove-orphans --abort-on-container-exit --build test", + "test:all": "TZ=utc node --expose-gc ./node_modules/.bin/jest --logHeapUsage --forceExit --ci -w=2 --clearMocks packages/cli/src/controller/publish-controller.spec.ts", + "test:docker": "docker compose -f test/docker-compose.yaml up --remove-orphans --abort-on-container-exit --build test", "postinstall": "husky install" }, "lint-staged": { diff --git a/packages/cli/test/build/package.json b/packages/cli/test/build/package.json index 109b7fd844..b1940ac629 100644 --- a/packages/cli/test/build/package.json +++ b/packages/cli/test/build/package.json @@ -6,8 +6,8 @@ "scripts": { "build": "subql build", "codegen": "subql codegen", - "start:docker": "docker-compose pull && docker-compose up --remove-orphans", - "dev": "subql codegen && subql build && docker-compose pull && docker-compose up --remove-orphans", + "start:docker": "docker compose pull && docker compose up --remove-orphans", + "dev": "subql codegen && subql build && docker compose pull && docker compose up --remove-orphans", "prepack": "rm -rf dist && npm run build", "test": "subql build && subql-node test" }, diff --git a/packages/cli/test/schemaTest/package.json b/packages/cli/test/schemaTest/package.json index b9acc857d1..be177753a3 100644 --- a/packages/cli/test/schemaTest/package.json +++ b/packages/cli/test/schemaTest/package.json @@ -6,8 +6,8 @@ "scripts": { "build": "subql build", "codegen": "subql codegen", - "start:docker": "docker-compose pull && docker-compose up --remove-orphans", - "dev": "subql codegen && subql build && docker-compose pull && docker-compose up --remove-orphans", + "start:docker": "docker compose pull && docker compose up --remove-orphans", + "dev": "subql codegen && subql build && docker compose pull && docker compose up --remove-orphans", "prepack": "rm -rf dist && npm run build", "test": "subql build && subql-node-ethereum test" }, diff --git a/packages/utils/src/graphql/graphql.spec.ts b/packages/utils/src/graphql/graphql.spec.ts index 4eb6c07169..72489b7f72 100644 --- a/packages/utils/src/graphql/graphql.spec.ts +++ b/packages/utils/src/graphql/graphql.spec.ts @@ -1,7 +1,6 @@ // Copyright 2020-2024 SubQuery Pte Ltd authors & contributors // SPDX-License-Identifier: GPL-3.0 -import {buildSchema} from 'graphql'; import gql from 'graphql-tag'; import {getAllEntitiesRelations} from './entities'; import {buildSchemaFromDocumentNode} from './schema'; diff --git a/test/docker-compose.yaml b/test/docker-compose.yaml index d4bfa7fb79..5e55359137 100644 --- a/test/docker-compose.yaml +++ b/test/docker-compose.yaml @@ -1,4 +1,4 @@ -version: '3' +version: "3" services: postgres: @@ -31,4 +31,3 @@ services: command: - yarn - test:all -