From d798111a3cd8a9758531e1b2f08a459176fd17a2 Mon Sep 17 00:00:00 2001 From: Mateusz Duda Date: Thu, 11 Apr 2024 12:16:14 +0200 Subject: [PATCH] updated workflow --- .github/workflows/run-unit-tests.yml | 5 ++++- test/git/fileSystemUtils.test.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml index 18ac0eb..fbf21ef 100644 --- a/.github/workflows/run-unit-tests.yml +++ b/.github/workflows/run-unit-tests.yml @@ -14,10 +14,13 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '12.16.1' - - name: Install npm dependencies + - name: Install npm dependencies run: npm ci - name: Create scope-tags build run: npx tsc + # Just to not display git warning in unit test output + - name: Configure git + run: git config --global init.defaultBranch main - name: Make temporary folder for tests run: mkdir ./TEST_TMP && ls -ltra . - name: Run Jest unit tests diff --git a/test/git/fileSystemUtils.test.ts b/test/git/fileSystemUtils.test.ts index ac3208f..f025391 100644 --- a/test/git/fileSystemUtils.test.ts +++ b/test/git/fileSystemUtils.test.ts @@ -5,14 +5,14 @@ import rimraf from "rimraf"; import { TEMP_TEST_FOLDER } from "../_utils/globals"; import { assertTemporaryFolderExists } from "../_utils/utils"; -const SCOPE_FOLDER_PATH = join(TEMP_TEST_FOLDER, ".scope"); +const SCOPE_FOLDER_PATH = resolve(join(TEMP_TEST_FOLDER, ".scope")); beforeEach(() => { assertTemporaryFolderExists(); }); afterAll(() => { - rimraf.sync(resolve(SCOPE_FOLDER_PATH)); + rimraf.sync(SCOPE_FOLDER_PATH); }); const purgeScopeFolder = () => {