
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
@ovh-ux/manager-tests-setup
Advanced tools
@ovh-ux/manager-tests-setup
Shared unit test configuration for OVHcloud Manager apps
Modular, hexagonally-structured test infrastructure layer
Promotes consistency, reuse, and decoupling across 30+ React applications
@ovh-ux/manager-tests-setup
centralizes test configuration (unit, integration, and future test layers) for all OVHcloud Manager apps. It provides:
sharedConfig
for unit and integration testingcreateConfig
, mergeConfig
, defaultCoverageConfig
) to decouple applications from test runner internalsmanager-test
) for seamless test execution—no need to locally install or configure the test runnerThe setup follows Hexagonal Architecture principles, ensuring test logic remains isolated from application code and tooling can evolve independently.
In the OVHcloud Manager monorepo:
yarn add -D @ovh-ux/manager-tests-setup
Each app consumes the shared configuration by combining sharedConfig
with local overrides via mergeConfig
.
vitest.config.js
import path from 'path';
import {
sharedConfig,
createConfig,
mergeConfig,
defaultCoverageConfig,
} from '@ovh-ux/manager-tests-setup';
export default mergeConfig(
sharedConfig,
createConfig({
test: {
setupFiles: ['./src/setupTests.ts'],
coverage: {
exclude: ['src/specific/setup.ts', ...defaultCoverageConfig.exclude],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
}),
);
manager-test
A unified CLI wrapper for executing tests without requiring per-app test runner dependencies:
yarn manager-test
Supported flags:
yarn manager-test run --coverage
yarn manager-test --ui
Applications do not need to install
vitest
,@vitejs/plugin-react
, or@vitest/coverage-v8
individually.
Export | Description |
---|---|
sharedConfig | Base configuration (includes jsdom , React plugin, coverage) |
createConfig() | Factory to create custom config fragments (wraps defineConfig ) |
mergeConfig() | Merges shared and local config (wraps mergeConfig from Vitest) |
defaultCoverageConfig | Shared defaults for coverage settings (excludes, reporters, etc.) |
This package follows Hexagonal Architecture:
createConfig
, mergeConfig
, defaultCoverageConfig
vi.mock
, after*
, or before*
.vitest/browser
or Jest)BSD-3-Clause
© OVH SAS — for use with any OVHcloud Manager testing needs (unit, integration, etc.)
FAQs
Manager common tests configuration
The npm package @ovh-ux/manager-tests-setup receives a total of 1,083 weekly downloads. As such, @ovh-ux/manager-tests-setup popularity was classified as popular.
We found that @ovh-ux/manager-tests-setup demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.