Registry / testing / qunit-theme-ember

qunit-theme-ember

JSON →
library1.0.0jsnpmunverified

qunit-theme-ember provides a visual theme for the QUnit web UI test runner, specifically styling it to align with the official Ember styleguide. The package is currently stable at version 1.0.0, which was released to indicate maturity and stability without introducing any breaking changes since version 0.2.0. As a CSS-only package, its release cadence is generally tied to updates in the Ember styleguide or QUnit's internal DOM structure, implying infrequent but deliberate releases focused on maintaining compatibility and visual fidelity. Its primary differentiator is its direct integration with the Ember ecosystem's aesthetic, offering a consistent and familiar visual experience for developers working on Ember applications that utilize QUnit for unit and integration testing, making test results feel native to the Ember development environment.

npm install qunit-theme-ember
INSTALL
IMPORT
SIG · QUNIT-THEME-EMBER
Q
qunit-theme-ember
testingjavascriptv1.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

qunit.css
import 'qunit-theme-ember/qunit.css';
const theme = require('qunit-theme-ember/qunit.css');
This is a side-effect import for applying global CSS styles to the QUnit test runner UI. No JavaScript symbols are exported from this path.

Installs the QUnit Ember theme package and imports its CSS styles into a QUnit test suite, demonstrating a basic test setup.

npm install --save-dev qunit-theme-ember // or yarn add --dev qunit-theme-ember // or pnpm install --save-dev qunit-theme-ember // In your QUnit test setup file, e.g., your-app/tests/test-helper.js // Make sure this import comes after QUnit's core setup import 'qunit-theme-ember/qunit.css'; // Example of a basic QUnit test file (e.g., tests/unit/example-test.js) import { module, test } from 'qunit'; module('Unit | Example', function(hooks) { test('it works', function(assert) { assert.ok(true, 'Example test passed'); }); });
Debug
Known issues
gotchaThis package only provides visual styling. It requires QUnit to be installed and configured in your project for the theme to have any effect on your test runner UI. It does not provide QUnit itself.
fix
Ensure `qunit` is installed as a `devDependency` (`npm install --save-dev qunit`) and your test runner is correctly configured to use QUnit.
affects: >=0.1.0
breakingVersion 1.0.0 was declared to indicate stability and does not introduce any new breaking changes compared to v0.2.0. However, if upgrading from versions prior to v0.2.0, review their respective changelogs for potential minor styling adjustments or feature additions.
fix
Consult the release notes for versions between your current version and v0.2.0 if experiencing unexpected visual changes upon upgrade.
affects: <=0.1.x
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'qunit-theme-ember/qunit.css'
The import path for the CSS file is incorrect, or the package was not installed correctly.
fix
Verify the package is installed: `npm list qunit-theme-ember`. Ensure the import statement is exactly `import 'qunit-theme-ember/qunit.css';` in your test setup file.
Theme not applied, QUnit UI looks default.
The CSS import is either missing, incorrectly placed, or overridden by other styles.
fix
Ensure `import 'qunit-theme-ember/qunit.css';` is present in your test helper/setup file and that this file is actually being loaded by your test runner. In Ember applications, this typically goes into `tests/test-helper.js`. Check browser developer tools for CSS loading errors or conflicting styles.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
qunitrequiredThis package provides a theme for the QUnit test runner and requires QUnit to be present in the project's dev dependencies to function.
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
qunit-theme-ember — npm install qunit-theme-ember · libregistry