Skip to content

Commit

Permalink
fix: inconsistent CI output
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jun 16, 2020
1 parent 48ce9a9 commit 5952f55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/core-flags/cache-flags.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ describe('cahche related flags from core', () => {
});

it('should set cache.cacheDirectory with --cache-cache-directory', () => {
const { stderr, stdout } = run(__dirname, ['--cache-type', 'filesystem', '--cache-cache-directory', '../../test']);
const path = resolve(__dirname, '../../test');
const { stderr, stdout } = run(__dirname, ['--cache-type', 'filesystem', '--cache-cache-directory', '../../../../test']);
const path = resolve(__dirname, '../../../../test'); //lowering the level because it's too long for CI

expect(stderr).toBeFalsy();
expect(stdout).toContain(`cacheDirectory: '${path}'`);
});

it('should set cache.cacheLocation with --cache-cache-locations', () => {
const { stderr, stdout } = run(__dirname, ['--cache-type', 'filesystem', '--cache-cache-location', '../../locate-cache']);
const path = resolve(__dirname, '../../locate-cache');
const { stderr, stdout } = run(__dirname, ['--cache-type', 'filesystem', '--cache-cache-location', '../../../locate-cache']);
const path = resolve(__dirname, '../../../locate-cache'); //lowering the level because it's too long for CI

expect(stderr).toBeFalsy();
expect(stdout).toContain(`cacheLocation: '${path}`);
expect(stdout).toContain(`cacheLocation: '${path}'`);
});

it('should set cache.hashAlgorithm with --cache-hash-algorithm', () => {
Expand Down

0 comments on commit 5952f55

Please sign in to comment.