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.

npm install ember-cli-yadda
INSTALL
IMPORT
SIG · EMBER-CLI-YADDA
E
ember-cli-yadda
testingjavascriptv0.7.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.

yadda
import { yadda } from 'ember-cli-yadda';
import yadda from '../../helpers/yadda';
Since v0.5.0, yadda is re-exported from the addon. The old path is broken.
default
import yadda from '../../helpers/yadda';
import { yadda } from '../../helpers/yadda';
Only valid for legacy v0.4.x and earlier. Do not use in v0.5.0+.

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 issues
breakingIn v0.7.0, ember-auto-import v2 is required. v1 is no longer supported.
fix
Update to ember-auto-import v2 or use Embroider with custom webpack config.
affects: >=0.7.0
breakingIn v0.7.0, support for Ember 3.16 and Node 10 was dropped.
fix
Use Ember 3.20+ and Node 12+.
affects: >=0.7.0
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.
fix
Replace all `import yadda from '../../helpers/yadda'` with `import { yadda } from 'ember-cli-yadda'`.
affects: >=0.6.0
breakingIn v0.5.0, ember-browserify was replaced by ember-auto-import. Manual cleanup needed.
fix
Run `npm uninstall ember-browserify` and update imports to `import { yadda } from 'ember-cli-yadda'`.
affects: >=0.5.0
breakingIn v0.4.0, the testing API changed to RFC 232/268; older synchronous test patterns no longer work.
fix
Rewrite tests to use modern `setupApplicationTest` hooks and async/await.
affects: >=0.4.0
gotchaEmbroider requires custom webpack config to resolve yadda's require() calls.
fix
Add `config.resolve.fallback: { 'path': require.resolve('path-browserify'), 'fs': false }` to webpack config in ember-cli-build.js.
affects: >=0.6.0
Errors
Common errors & fixes
Cannot find module 'yadda'
Missing yadda npm package or incorrect import path.
fix
Install yadda: `npm install --save-dev yadda` and use `import { yadda } from 'ember-cli-yadda'` (v0.6+).
AssertionError: expected false to be truthy
Test step callback not invoked correctly in QUnit.
fix
Ensure step functions call the callback (e.g., `function(done) { ... done(); }`) or return a promise.
TypeError: yadda.yadda is not a function
Using old import path (helpers/yadda) instead of addon re-export.
fix
Replace with `import { yadda } from 'ember-cli-yadda'`.
Module build failed: Error: Can't resolve 'path'
Embroider/webpack polyfills missing in Node environment.
fix
Add `config.resolve.fallback: { path: require.resolve('path-browserify'), fs: false }` to webpack config.
Upgrade
Version history
0.7.0latest on npm
Audit
Dependencies
yaddarequiredCore library for parsing and executing Gherkin feature files.
ember-auto-importoptionalRequired for importing yadda via webpack (v2+).
Agent activity
2 hits · last 30 days
node
2
Resources
ember-cli-yadda — npm install ember-cli-yadda · libregistry