Skip to content

feat: remove @open-wc/testing dependency#8

Merged
cristinecula merged 1 commit intomasterfrom
feature/neo-930-neovicitesting-renderhook
Feb 6, 2026
Merged

feat: remove @open-wc/testing dependency#8
cristinecula merged 1 commit intomasterfrom
feature/neo-930-neovicitesting-renderhook

Conversation

@cristinecula
Copy link
Contributor

@cristinecula cristinecula commented Feb 6, 2026

Summary

  • Removes @open-wc/testing dependency to enable Vitest compatibility
  • Adds local waitUntil utility (cloned from @open-wc/testing-helpers) and exports it from the package
  • Replaces litFixtureSync with lit-html's native render function

Changes

File Change
src/wait-until.ts New file - waitUntil cloned from @open-wc/testing-helpers
src/index.ts Export waitUntil from package
src/renderer.ts Replace litFixtureSync with lit-html render() + DOM container
src/render-hook.ts Import waitUntil from local ./wait-until
package.json Remove @open-wc/testing, add @esm-bundle/chai to devDeps, update @neovici/cfg to ^2.8.0
test/render-hook.test.ts Import expect from @esm-bundle/chai directly
tsconfig.json Add skipLibCheck: true for chai type compatibility

Motivation

The @open-wc/testing package has ESM/extension issues in jsdom environments, preventing @neovici/testing from being used with Vitest. This change removes the problematic dependency while maintaining full backward compatibility.

Related

@cristinecula cristinecula force-pushed the feature/neo-930-neovicitesting-renderhook branch from 703f9fa to 7753a9d Compare February 6, 2026 22:41
@cristinecula cristinecula marked this pull request as ready for review February 6, 2026 22:42
Replace litFixtureSync and waitUntil from @open-wc/testing with
local implementations to enable Vitest compatibility.

Changes:
- Add src/wait-until.ts with waitUntil cloned from @open-wc/testing-helpers
- Export waitUntil from package for external use
- Replace litFixtureSync with lit-html render() + DOM container
- Update test to use @esm-bundle/chai directly
- Add skipLibCheck for chai type compatibility
- Update @neovici/cfg to ^2.8.0 for check-duplicate-components

This removes the @open-wc/testing dependency which has ESM issues
in jsdom environments, allowing the package to work with Vitest.
@cristinecula cristinecula force-pushed the feature/neo-930-neovicitesting-renderhook branch from 7753a9d to 4e42eb8 Compare February 6, 2026 22:43
@cristinecula cristinecula changed the title refactor: remove @open-wc/testing dependency feat: remove @open-wc/testing dependency Feb 6, 2026
@cristinecula cristinecula self-assigned this Feb 6, 2026
@cristinecula cristinecula added the enhancement New feature or request label Feb 6, 2026
@cristinecula cristinecula merged commit 237d51e into master Feb 6, 2026
2 checks passed
github-actions bot pushed a commit that referenced this pull request Feb 6, 2026
## 2.2.0 (2026-02-06)

* feat: remove @open-wc/testing dependency (#8) ([237d51e](237d51e)), closes [#8](#8)
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant