Registry / testing / ember-cli-yadda

ember-cli-yadda

JSON →
library0.7.0jsnpmunverified

Ember CLI addon (v0.7.0, latest) that integrates yadda with Ember's test suite for writing BDD tests in Gherkin. Supports QUnit and Mocha, generating acceptance/integration/unit feature files and step definitions. Requires Ember.js ≥3.20, Ember CLI ≥3.20, Node.js ≥12, and either ember-auto-import v2 or Embroider with custom webpack config. Key differentiators: provides blueprints, supports annotations, and is actively maintained by the Ember community.

testing
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.

Since v0.5.0, yadda is re-exported from the addon. The old path is broken.

import { yadda } from 'ember-cli-yadda';

Only valid for legacy v0.4.x and earlier. Do not use in v0.5.0+.

import yadda from '../../helpers/yadda';

Install addon, generate a feature, and use yadda in a QUnit acceptance test.

ember install ember-cli-yadda\nember g feature acceptance-test\n# Write feature file in tests/acceptance/acceptance-test.feature\n# Then use in a test file:\nimport { yadda } from 'ember-cli-yadda';\nimport steps from './steps/steps';\nconst library = yadda.library(steps);\nmodule('Acceptance | bananas rot', function(hooks) {\n setupApplicationTest(hooks);\n test('bananas rot faster when next to apples', async function(assert) {\n await yadda.yadda(library, new yadda.FeatureFileSearch('tests/acceptance').list(), assert);\n });\n});
Debug
Known footguns
breakingIn v0.7.0, ember-auto-import v2 is required. v1 is no longer supported.
breakingIn v0.7.0, support for Ember 3.16 and Node 10 was dropped.
breakingIn v0.6.0, importing yadda from 'ember-cli-yadda' (the re-export) became the only supported pattern; the old helpers/yadda path was removed.
breakingIn v0.5.0, ember-browserify was replaced by ember-auto-import. Manual cleanup needed.
breakingIn v0.4.0, the testing API changed to RFC 232/268; older synchronous test patterns no longer work.
gotchaEmbroider requires custom webpack config to resolve yadda's require() calls.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources