Skip to content

Commit 6d6307b

Browse files
authored
add circular dependency check (#153)
* add circular dependency check * uses self in tests * move test items to extras * fixup for windows * more timout fixing * fix tests for good
1 parent 46cf798 commit 6d6307b

File tree

6 files changed

+1143
-11
lines changed

6 files changed

+1143
-11
lines changed

__tests__/command_helpers/checkShell.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,20 @@ const createContext = (stdout: string, status: number = 0) => ({
1515
strings,
1616
})
1717

18+
let originalTimeout
19+
1820
describe('match', () => {
21+
beforeAll(() => {
22+
// These can be slow on CI
23+
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
24+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 90000
25+
})
26+
27+
afterAll(function() {
28+
// Fix timeout change
29+
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout
30+
})
31+
1932
describe('seamingly just a string', () => {
2033
const context = createContext('hi')
2134
it('matches exact', async () => {

__tests__/integration/solidarity-check/check-invalid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let originalTimeout
88
beforeAll(() => {
99
// These can be slow on CI
1010
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
11-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000
11+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 90000
1212
// Tempy!
1313
const tempDir = tempy.directory()
1414
process.chdir(tempDir)

__tests__/setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Stops warnings in CI mode
2+
// MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unhandledRejection listeners added. Use emitter.setMaxListeners()
3+
process.setMaxListeners(0)

0 commit comments

Comments
 (0)