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

Setting clearScreen: false does not work in watch mode #1125

Closed
garth opened this issue Apr 8, 2022 · 0 comments
Closed

Setting clearScreen: false does not work in watch mode #1125

garth opened this issue Apr 8, 2022 · 0 comments

Comments

@garth
Copy link

garth commented Apr 8, 2022

Describe the bug

Setting clearScreen: false in vitest.config.ts only works for the initial run in watch mode. Subsequent runs still clear the screen.

Reproduction

set clearScreen to false and execute vitest watch. The first test run does not clear the screen. Then change a file and the screen gets clears for the new test run.

export default defineConfig({
  // ...
  clearScreen: false,
})
``


### System Info

```shell
System:
    OS: macOS 12.3.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 179.77 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.14.0 - ~/.volta/tools/image/node/16.14.0/bin/node
    Yarn: 1.22.18 - ~/.volta/tools/image/yarn/1.22.18/bin/yarn
    npm: 8.5.3 - ~/.volta/tools/image/npm/8.5.3/bin/npm
  Browsers:
    Chrome: 100.0.4896.75
    Firefox: 98.0.2
    Safari: 15.4
  npmPackages:
    @vitejs/plugin-react: ^1.3.0 => 1.3.0
    vite: ^2.9.1 => 2.9.1
    vitest: ^0.9.2 => 0.9.2


### Used Package Manager

pnpm

### Validations

- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
@antfu antfu closed this as completed in d482992 Apr 10, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant