Skip to content

Commit

Permalink
tests: debug problems
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Oct 11, 2020
1 parent 969d885 commit bfce721
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/build-errors/errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ describe('errors', () => {

const json = JSON.parse(data);

console.log(json);

expect(json['hash']).toBeDefined();
expect(json['errorsCount']).toBe(1);
expect(json['errors'][0].message).toMatch(/Can't resolve/);
Expand Down
1 change: 1 addition & 0 deletions test/build-warnings/warnings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('warnings', () => {
it('should store json to a file', (done) => {
const { stdout, exitCode } = run(__dirname, ['--json', 'stats.json']);

console.log(stdout);
expect(stdout).toContain('stats are successfully stored as json to stats.json');
expect(exitCode).toBe(0);

Expand Down

0 comments on commit bfce721

Please sign in to comment.