nrwl/nx

Nx+Vitest ignores root vitest.config.ts

Lonli-Lokli opened this issue · 4 comments

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