This commit is contained in:
Kirill Chernyshov 2019-10-07 15:13:17 +02:00
parent 34aa397a4e
commit db9c263c59
No known key found for this signature in database
GPG Key ID: 425B3AB78FBCFBDB
2 changed files with 4 additions and 6 deletions

View File

@ -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 () => {

View File

@ -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 () => {