{"library":"can-test-helpers","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.1.4","tags":["javascript","canjs","donejs","qunit"],"last_verified":"Wed May 27","install":[{"cmd":"npm install can-test-helpers","imports":["import devHelpers from 'can-test-helpers/lib/dev';","import devHelpers from 'can-test-helpers/lib/dev'; devHelpers.willWarn(...);","import devHelpers from 'can-test-helpers/lib/dev'; devHelpers.devOnlyTest(...);"]},{"cmd":"yarn add can-test-helpers","imports":[]},{"cmd":"pnpm add can-test-helpers","imports":[]}],"homepage":null,"github":"https://github.com/canjs/can-test-helpers","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/can-test-helpers","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/can-test-helpers/compatibility"}}