Skip to content

Commit

Permalink
chore: resolve running test cases on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
msudgh committed Aug 10, 2024
1 parent 899c65d commit aa90de8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 2 additions & 0 deletions src/commands/config/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit aa90de8

Please sign in to comment.