Registry / testing / ember-cli-test-info

ember-cli-test-info

JSON →
library1.0.0jsnpmunverified

A utility package for Ember CLI that extracts and provides test information for blueprints and addons. Version 1.0.0 is stable, with no recent updates. It is used internally by Ember CLI's blueprint system to generate test files. Minimal documentation; primarily a dependency for other Ember CLI addons and blueprints.

npm install ember-cli-test-info
INSTALL
IMPORT
SIG · EMBER-CLI-TEST-INF
E
ember-cli-test-info
testingjavascriptv1.0.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
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 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

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

default
✓ import testInfo from 'ember-cli-test-info';
✗ const testInfo = require('ember-cli-test-info');
Package is an ES module. CommonJS require works if using Node.js with CJS interop, but ESM import is preferred.
testInfo
✓ const testInfo = require('ember-cli-test-info');
✗ import * as testInfo from 'ember-cli-test-info';
Default export can be imported as namespace, but it's unnecessary. Use default import for clarity.
testInfo
✓ import testInfo from 'ember-cli-test-info';
✗ import { testInfo } from 'ember-cli-test-info';
No named export 'testInfo'. Use default import.

Demonstrates importing and using the default function to extract test info for a given module name.

import testInfo from 'ember-cli-test-info'; // Example: get test info for a module name const info = testInfo('my-component'); console.log(info); // { name: 'my-component', ... }
Debug
Known issues
gotchaThe package exports only a default function; no named exports.
fix
Use `import testInfo from 'ember-cli-test-info'`.
affects: >=1.0.0
deprecatedThe package has not been updated since 2016; functionality may be superseded by newer Ember CLI versions.
fix
Check Ember CLI documentation for current test info extraction methods.
affects: >=1.0.0
Errors
Common errors & fixes
SyntaxError: Named export 'testInfo' not found. The requested module 'ember-cli-test-info' is a CommonJS module; it may not support all module.exports as named exports.
Attempting to import named export 'testInfo' from a default-only CommonJS module.
fix
Use default import: `import testInfo from 'ember-cli-test-info'`.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ember-cli-test-info — npm install ember-cli-test-info · libregistry