ember-fastboot-test-helpers

raw JSON →
0.2.0 verified Sat Apr 25 auth: no javascript deprecated

Experimental test helpers for Ember applications running in FastBoot mode. Version 0.2.0 provides utilities to simplify testing server-side rendered Ember apps, but is marked as experimental and not actively maintained. It requires ember-cli-fastboot as a peer dependency. Key differentiator: specifically targets FastBoot testing scenarios, unlike general Ember testing addons.

error Cannot find module 'ember-fastboot-test-helpers'
cause Package may not be installed or is not in node_modules.
fix
Run 'npm install ember-fastboot-test-helpers' or ensure it's added to package.json.
deprecated Package is experimental and no longer maintained. Consider using ember-cli-fastboot's built-in test helpers or other modern alternatives.
fix Migrate to ember-cli-fastboot's official testing support or custom setup.
npm install ember-fastboot-test-helpers
yarn add ember-fastboot-test-helpers
pnpm add ember-fastboot-test-helpers

Demonstrates setting up a QUnit test with FastBoot visit helper.

import { module, test } from 'qunit';
import { setupFastbootTest } from 'ember-fastboot-test-helpers';

module('Acceptance | fastboot test', function(hooks) {
  setupFastbootTest(hooks);

  test('it renders in fastboot', async function(assert) {
    let { html } = await this.fastboot.visit('/');
    assert.ok(html.includes('Welcome'));
  });
});