Skip to content

test: set the holdmytask-dev condition with devCondition() and drop the no-op test.nodeOptions - #99

Merged
Shinrai merged 1 commit into
nextfrom
test/dev-condition
Nov 5, 2026
Merged

Shinrai merged 1 commit into
nextfrom
test/dev-condition

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

test.nodeOptions isn't a Vitest option, so the dev condition never reached the workers. devCondition() from @cldmv/configs sets the resolve/ssr conditions and test.execArgv instead.

…he no-op test.nodeOptions

test.nodeOptions isn't a Vitest option, so it passed nothing to the workers.
devCondition() from @cldmv/configs sets resolve/ssr conditions and test.execArgv.
@cldmv-bot cldmv-bot Bot added ! test → next v4 flow: test contributor PR targeting the next integration branch type: dependencies Relates to dependency updates, version bumps, or package management labels Nov 5, 2026
@Shinrai
Shinrai merged commit ad5fbdf into next Nov 5, 2026
31 checks passed
@cldmv-bot
cldmv-bot Bot deleted the test/dev-condition branch November 5, 2026 01:55
cldmv-bot Bot added a commit that referenced this pull request Nov 7, 2026
# HoldMyTask v2.1.2 Changelog

**Release Date**: November 2026
**Release Type**: Patch
**Branch**: `release/2.1.2`

---

## Overview

v2.1.2 is a development-tooling release. The test config now resolves the package through the `holdmytask-dev` export condition the way it was meant to, and the type scripts use the fleet names `types:check` and `types:build`.

No library code changed. The queue, its options and the published files are the same as in v2.1.1, and nothing changes for anyone installing the package.

---

## 🔧 CI & tooling

### Tests run against `src/` through `devCondition()` ([#99](#99))

`.configs/vitest.config.mjs` set `test.nodeOptions` to pass `--conditions=holdmytask-dev` to the test workers, but vitest has no such option, so the condition never reached them. The config now builds on `devCondition()` from `@cldmv/configs` (bumped to `^1.4.0`), which sets the resolver conditions and the worker `execArgv`, so Node's own resolver picks `src/` through the `holdmytask-dev` export condition too.

### Type scripts renamed to `types:check` and `types:build` ([#101](#101))

- `test:types` is now `types:check` (`tsc --noEmit` on `.configs/tsconfig.dts.jsonc`), and CI's type-check step runs it.
- `build:types` is now `types:build`, which emits the declarations. `build:ci` and `precommit` use the new names.
- The `.prettierignore` comment and the CI comments name the new scripts.

## 📚 Documentation

- **NEW:** [docs/changelog/v2/v2.1.2.md](./v2.1.2.md): this changelog.
- README What's New promoted to v2.1.2.

## 🔧 Dependencies

- `@cldmv/configs` ^1.3.0 → ^1.4.0, for `devCondition()` ([#99](#99)). Development dependency only.

---

## Upgrade notes

- No breaking changes; drop-in for v2.1.1. No library code changed.
- If you run `npm run test:types` or `npm run build:types` locally or in your own scripts, use `types:check` and `types:build`.



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

---

<!-- coverage-start -->

![coverage](https://img.shields.io/badge/coverage-77.8%25-green?style=for-the-badge&logo=vitest&logoColor=white)

| Metric | Coverage |
|--------|----------|
| Statements | 80.8% |
| Branches   | 75.4% |
| Functions  | 73.4% |
| Lines      | 81.9% |

*Avg: **77.8%** · `7523421` · Node lts/**

<!-- coverage-end -->

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

! test → next v4 flow: test contributor PR targeting the next integration branch type: dependencies Relates to dependency updates, version bumps, or package management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant