diff --git a/test/integration/link.integration.ts b/test/integration/link.integration.ts index 169bf26d..a2cdfe60 100644 --- a/test/integration/link.integration.ts +++ b/test/integration/link.integration.ts @@ -19,7 +19,7 @@ async function exec(cmd: string, opts?: {cwd?: string}) { }) } -describe('link/unlink integration tests', () => { +;(process.platform === 'win32' ? describe.skip : describe)('link/unlink integration tests', () => { let sandbox: SinonSandbox let stubs: ReturnType @@ -32,12 +32,15 @@ describe('link/unlink integration tests', () => { before(async () => { try { - await Promise.all([ - rm(cacheDir, {force: true, recursive: true}), - rm(configDir, {force: true, recursive: true}), - rm(dataDir, {force: true, recursive: true}), - rm(pluginDir, {force: true, recursive: true}), - ]) + // no need to clear out directories in CI since they'll always be empty + if (!process.env.CI) { + await Promise.all([ + rm(cacheDir, {force: true, recursive: true}), + rm(configDir, {force: true, recursive: true}), + rm(dataDir, {force: true, recursive: true}), + rm(pluginDir, {force: true, recursive: true}), + ]) + } } catch {} await exec(`git clone ${repo} ${pluginDir} --depth 1`) diff --git a/test/integration/sf.integration.ts b/test/integration/sf.integration.ts index b8654170..54d34e58 100644 --- a/test/integration/sf.integration.ts +++ b/test/integration/sf.integration.ts @@ -39,9 +39,9 @@ describe('sf Integration', () => { console.log('process.env.SF_CACHE_DIR:', chalk.dim(process.env.SF_CACHE_DIR)) console.log('process.env.SF_CONFIG_DIR:', chalk.dim(process.env.SF_CONFIG_DIR)) - // no need to clear out directories in CI since they'll always be empty try { - if (process.env.CI) { + // no need to clear out directories in CI since they'll always be empty + if (!process.env.CI) { await Promise.all([ rm(process.env.SF_DATA_DIR, {force: true, recursive: true}), rm(process.env.SF_CACHE_DIR, {force: true, recursive: true}),