From 94523d54e4c14bc3a8a3210f0fbdf16158a3f572 Mon Sep 17 00:00:00 2001 From: Justin Dalrymple Date: Wed, 24 Jan 2024 15:38:36 -0500 Subject: [PATCH] Moving more tests that dont need a live GL instance to the integration heading --- .gitlab-ci.yml | 12 ++++++------ packages/core/package.json | 2 +- packages/core/test/{e2e => integration}/map.ts | 0 3 files changed, 7 insertions(+), 7 deletions(-) rename packages/core/test/{e2e => integration}/map.ts (100%) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1dd7cc31f..8cb243d8b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -301,11 +301,11 @@ test:integration:browser: - yarn add @swc/core script: yarn test:integration:browser --projects=@gitbeaker/rest -## End-to-End Tests +test:integration:core: + extends: .test:integration:base + script: yarn test:integration --projects=@gitbeaker/core -test:e2e:core: - extends: .test:e2e:base - script: yarn test:e2e --projects=@gitbeaker/core +## End-to-End Tests test:e2e:rest:browser: extends: .test:e2e:base @@ -411,7 +411,7 @@ release:special: - test:types:core - test:types:rest - test:integration:browser - - test:e2e:core + - test:integration:core - test:e2e:cli - test:e2e:rest:browser - test:e2e:rest:nodejs @@ -449,7 +449,7 @@ release: - test:types:core - test:types:rest - test:integration:browser - - test:e2e:core + - test:integration:core - test:e2e:cli - test:e2e:rest:browser - test:e2e:rest:nodejs diff --git a/packages/core/package.json b/packages/core/package.json index 2f63d8983..70fc636fc 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -45,7 +45,7 @@ "build:map": "tsx scripts/generate.ts", "build:self": "tsup src/index.ts --format esm,cjs --dts --treeshake", "test:types": "tsc", - "test:e2e": "jest --maxWorkers=50% test/e2e", + "test:integration": "jest --maxWorkers=50% test/integration", "test:unit": "jest --maxWorkers=50% test/unit", "format:docs": "prettier '**/(*.json|.yml|.js|.md)' --ignore-path ../../.prettierignore", "format:docs:fix": "yarn format:docs --write", diff --git a/packages/core/test/e2e/map.ts b/packages/core/test/integration/map.ts similarity index 100% rename from packages/core/test/e2e/map.ts rename to packages/core/test/integration/map.ts