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

Nx+Vitest ignores root vitest.config.ts #23303

Open
1 of 4 tasks
Lonli-Lokli opened this issue May 10, 2024 · 6 comments
Open
1 of 4 tasks

Nx+Vitest ignores root vitest.config.ts #23303

Lonli-Lokli opened this issue May 10, 2024 · 6 comments
Assignees
Labels
blocked: repro needed scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: bug

Comments

@Lonli-Lokli
Copy link

Lonli-Lokli commented May 10, 2024

Current Behavior

Any settings specified in root vitest.config.ts are ignored

Expected Behavior

Settings from root vitest.config.ts should be applied

GitHub Repo

No response

Steps to Reproduce

  1. Create any Nx + Vitest repo
  2. Remove existing test
  3. Add root vitest.config.ts with
import { defineConfig } from 'vitest/config';

export default defineConfig({
  test: {
    passWithNotTests: true
  }
})
  1. Run npx nx proj:test

Nx Report

NX   Report complete - copy this into the issue template

Node   : 18.18.2
OS     : win32-x64
npm    : 9.8.1

nx                 : 19.0.2
@nx/js             : 19.0.2
@nx/linter         : 19.0.2
@nx/eslint         : 19.0.2
@nx/workspace      : 19.0.2
@nx/devkit         : 19.0.2
@nx/eslint-plugin  : 19.0.2
@nx/react          : 19.0.2
@nrwl/tao          : 19.0.2
@nx/vite           : 19.0.2
@nx/web            : 19.0.2
typescript         : 5.4.5

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@AgentEnder AgentEnder added the scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx label May 10, 2024
@ndcunningham
Copy link
Contributor

Hey, can you provide a repro so we can investigate, this is working as expected on my end.

@Lonli-Lokli
Copy link
Author

Copy link

This issue has been automatically marked as stale because no reproduction was provided within 7 days.
Please help us help you. Providing a repository exhibiting the issue helps us diagnose and fix the issue.
Any time that we spend reproducing this issue is time taken away from addressing this issue and other issues.
This issue will be closed in 21 days if a reproduction is not provided.
If a reproduction has been provided, please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@github-actions github-actions bot added the stale label May 25, 2024
@Lonli-Lokli
Copy link
Author

It's not stale!
@AgentEnder

@github-actions github-actions bot removed the stale label May 26, 2024
Copy link

github-actions bot commented Jun 2, 2024

This issue has been automatically marked as stale because no reproduction was provided within 7 days.
Please help us help you. Providing a repository exhibiting the issue helps us diagnose and fix the issue.
Any time that we spend reproducing this issue is time taken away from addressing this issue and other issues.
This issue will be closed in 21 days if a reproduction is not provided.
If a reproduction has been provided, please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

@github-actions github-actions bot added the stale label Jun 2, 2024
@Lonli-Lokli
Copy link
Author

It's active but ignored

@github-actions github-actions bot removed the stale label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: repro needed scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants