Skip to content

Commit bff2f1e

Browse files
authored
Update tools - Use Latest Gluegun (#142)
* upgrading gluegun * update packages * fix linting and move to latest TS standard * increase test duration
1 parent 76dac13 commit bff2f1e

File tree

10 files changed

+841
-710
lines changed

10 files changed

+841
-710
lines changed

__tests__/command_helpers/getVersion.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,21 @@ import getVersion from '../../src/extensions/functions/getVersion'
33
import solidarityExtension from '../../src/extensions/solidarity-extension'
44

55
const context = require('gluegun')
6+
let originalTimeout
67
solidarityExtension(context)
78

89
describe('getVersion', () => {
10+
beforeAll(() => {
11+
// These can be slow on CI
12+
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
13+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000
14+
})
15+
16+
afterAll(function () {
17+
// Fix timeout change
18+
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout
19+
})
20+
921
test('returns version for a given binary if not specified', async () => {
1022
const rule = { rule: "cli", binary: "yarn" }
1123
const output = await getVersion(rule, context)
@@ -34,4 +46,4 @@ describe('getVersion', () => {
3446
}
3547
expect(result).toEqual( " No version was detected from the output of the binary 'ls'")
3648
})
37-
})
49+
})

0 commit comments

Comments
 (0)