Exemplo
Merge Vitest configurations with mergeConfig to prove array options are concatenated, nested poolOptions are merged, scalar settings overwrite base values, and callback configs throw synchronously.
sha256:1dfef295ccfd24dd2807caebd70c6cc20478ae8ce7a866569caa0ce1609dc27d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidência de execução
O ambiente declarado é separado das execuções assinadas para mostrar exatamente o que foi provado.
Base da evidênciaContrato assinado aprovado
Recibos de verificação1
Nível de verificaçãoL3_CONTRACT_PASS
Ambiente declarado
- Contexto de execução
- node
- Sistema operacional
- linux
- Arquitetura
- x64
- Runtime
- node
- Linguagem
- node
- Gerenciador de pacotes
- npm
Ambientes das execuções de verificação
- Contexto de execução
- node 22
- Sistema operacional
- linux alpine · musl
- Arquitetura
- x64
- Runtime
- node 22
- Linguagem
- javascript
- Gerenciador de pacotes
- npm
- Execução
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Caso
- Objetivo
- Merge Vitest configurations with mergeConfig to prove array options are concatenated, nested poolOptions are merged, scalar settings overwrite base values, and callback configs throw synchronously. HOW
- Pacotes
-
vitest 3.2.7
- Ambiente
- node
- Criado
- 2026-08-17T13:23:39Z
O que costuma-se supor
mergeConfig replaces array options like test.include and test.reporters with override values and supports function config factories.
O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.
Contrato
- mergeConfig concatenates array options like test.include, test.exclude, and test.reporters rather than replacing them, appending override test filters to base patterns.
- mergeConfig coerces scalar string values to arrays and appends them when merged with existing array options like test.setupFiles.
- mergeConfig deeply merges nested configuration objects such as test.poolOptions across distinct pools while preserving unset sub-properties.
- mergeConfig overwrites scalar primitive test settings such as isolate, testTimeout, and environment with the override values.
- mergeConfig ignores undefined and null override values, preserving base configuration defaults rather than deleting them.
- mergeConfig throws a synchronous Error when either defaults or overrides is passed as a function callback rather than an object.
Arquivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Baixar o artefato de código-fonte (tar.gz)
Seeder de origem
csx-seed
Recibos de verificação
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9