diff --git a/__tests__/leiningen.test.ts b/__tests__/leiningen.test.ts index a118fba..6b8024d 100644 --- a/__tests__/leiningen.test.ts +++ b/__tests__/leiningen.test.ts @@ -8,8 +8,8 @@ import path = require('path'); const toolDir = path.join(__dirname, 'runner', 'tools', 'leiningen'); const tempDir = path.join(__dirname, 'runner', 'temp', 'leiningen'); -process.env['RUNNER_TOOL_CACHE'] = path.join(__dirname, 'runner', 'tools'); -process.env['RUNNER_TEMP'] = path.join(__dirname, 'runner', 'temp'); +process.env['RUNNER_TOOL_CACHE'] = toolDir; +process.env['RUNNER_TEMP'] = tempDir; import * as leiningen from '../src/leiningen'; describe('leiningen tests', () => { @@ -48,7 +48,6 @@ describe('leiningen tests', () => { expect(fs.existsSync(`${clojureDir}.complete`)).toBe(true); expect(fs.existsSync(path.join(clojureDir, 'bin', 'lein'))).toBe(true); - await exec.exec('lein version'); }, 100000); it('Uses version of leiningen installed in cache', async () => { diff --git a/__tests__/tdeps.test.ts b/__tests__/tdeps.test.ts index 158fffc..eeea3f8 100644 --- a/__tests__/tdeps.test.ts +++ b/__tests__/tdeps.test.ts @@ -7,8 +7,8 @@ import path = require('path'); const toolDir = path.join(__dirname, 'runner', 'tools', 'tdeps'); const tempDir = path.join(__dirname, 'runner', 'temp', 'tdeps'); -process.env['RUNNER_TOOL_CACHE'] = path.join(__dirname, 'runner', 'tools'); -process.env['RUNNER_TEMP'] = path.join(__dirname, 'runner', 'temp'); +process.env['RUNNER_TOOL_CACHE'] = toolDir; +process.env['RUNNER_TEMP'] = tempDir; import * as tdeps from '../src/tdeps'; describe('tdeps tests', () => { @@ -47,7 +47,6 @@ describe('tdeps tests', () => { expect(fs.existsSync(`${clojureDir}.complete`)).toBe(true); expect(fs.existsSync(path.join(clojureDir, 'bin', 'clojure'))).toBe(true); - exec.exec('clojure -Sdescribe'); }, 100000); it('Uses version of clojure tools-deps installed in cache', async () => {