Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There's no console.log output from 'beforeAll' and 'afterAll' when running tests via Webstorm / Aqua IDE #5754

Closed
6 tasks done
andrii-nastenko opened this issue May 20, 2024 · 1 comment

Comments

@andrii-nastenko
Copy link

Describe the bug

There's no console.log output from 'beforeAll' and 'afterAll' hooks when running tests via Webstorm / Aqua IDE built-in interface.

Reproduction

Use Webstorm or Aqua IDE.

Make .spec file with following structure:

describe('qwerty', () => {
  beforeAll(() => {
    console.log('log 1');
  });

  beforeEach(() => {
    console.log('log 2');
  });

  afterEach(() => {
    console.log('log 3');
  });

  afterAll(() => {
    console.log('log 4');
  });

  it('test console logs', () => {
    expect(1).toEqual(1);
  });
});

Run .spec file (whole describe block or a specific test - it doesn't matter) from built-in interface from Webstorm or Aqua and check console logs.
As a result - missing console logs from beforeAll / afterAll hooks.
Screenshot 2024-05-20 at 14 49 59

System Info

macOS Sonoma 14.1.1
vitest 1.6.0 / typescript & esm (vitest.config.mts)

Used Package Manager

yarn

Validations

@sheremet-va
Copy link
Member

We don't control what IDEs output there, it's not Vitest CLI output

@sheremet-va sheremet-va closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants