CanJS Test Helpers
JSON →CanJS Test Helpers is a utility package designed to provide common testing functions specifically for modules within the CanJS ecosystem. Currently at version 1.1.4, its primary features include `willWarn` and `willError` for intercepting and asserting against `canDev.warn` and `canDev.error` calls, and `devOnlyTest` for defining tests that execute only in development environments. The package ensures compatibility with modern testing setups by requiring QUnit 2.x since version 1.1.4. Its release cadence is generally aligned with updates in the broader CanJS family of libraries, such as `can-log` and `can-util`, ensuring seamless integration. A key differentiator is its direct interaction with CanJS's internal development logging mechanisms, providing fine-grained control over testing expected warnings and errors, which is crucial for library maintainers and application developers building with CanJS.
Traffic · last 30 days ↑0% vs prev 7d
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇪🇸 Spain