Skip to content

Commit

Permalink
Fix log statement. Update desc
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-yeager committed Oct 8, 2024
1 parent b79b429 commit 07536e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/latestPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: 18.x
- name: Install Deps
run: npm install
- name: Add package to npx cache
- name: Globally install the CLI
run: |
npm install -g @hubspot/cli@${{ env.version }}
- name: Test Latest CLI Release
Expand Down
8 changes: 2 additions & 6 deletions acceptance-tests/globalSetup.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import { existsSync, mkdirSync, rmSync } from 'fs';
import { testOutputDir } from './lib/testState';
import type { GlobalSetupContext } from 'vitest/node'
import * as dotEnv from "dotenv";
import * as path from "path";
import { getTestConfig } from "./lib/env";


// Vitest docs on globalSetup modules https://vitest.dev/config/#globalsetup
export function setup(__context: GlobalSetupContext) {
try {
const dotEnvConfig = dotEnv.config({ path: path.join(__dirname, './.env') });
const { parsed } = dotEnvConfig

if(parsed && parsed.USE_INSTALLED) {
if(getTestConfig().useInstalled) {
console.log('Using installed version of the hs command')
}

Expand Down

0 comments on commit 07536e6

Please sign in to comment.