From aa90de8141fe1c282e04b5e02dda1c20a757b60b Mon Sep 17 00:00:00 2001 From: Masoud Ghorbani Date: Sun, 11 Aug 2024 01:24:04 +0200 Subject: [PATCH] chore: resolve running test cases on windows --- package.json | 2 +- src/commands/config/init.test.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 22999e7..70662f2 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "postpack": "shx rm -f oclif.manifest.json", "posttest": "pnpm run lint", "prepack": "oclif manifest && pnpm run build:release && pnpm run test:unit", - "test:unit": "pnpm run build && CI=1 mocha", + "test:unit": "pnpm run build && mocha", "test:coverage": "nyc npm run test:unit" }, "keywords": [ diff --git a/src/commands/config/init.test.ts b/src/commands/config/init.test.ts index 1b13de5..2e00b6b 100644 --- a/src/commands/config/init.test.ts +++ b/src/commands/config/init.test.ts @@ -2,6 +2,8 @@ import { expect } from 'chai' import { existsSync } from 'fs' import { destroyConfigMockFile, getTmpConfigFilePath, runCommand } from '../../utils/testing' +process.env.CI = 'true' + describe('Command: config init', () => { beforeEach(async () => { const tmpConfigFilePath = getTmpConfigFilePath()