Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ember/test-helpers

Package Overview
Dependencies
Maintainers
10
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ember/test-helpers

Helpers for testing Ember.js applications

  • 0.7.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
148K
increased by4.02%
Maintainers
10
Weekly downloads
 
Created

What is @ember/test-helpers?

@ember/test-helpers is a package that provides a set of utilities to facilitate testing in Ember.js applications. It offers a variety of helpers to interact with the DOM, handle asynchronous operations, and manage application state during tests.

What are @ember/test-helpers's main functionalities?

Rendering Helpers

Rendering helpers allow you to render components or templates in the test environment. This is useful for testing the output and behavior of your UI components.

import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';

await render(hbs`<MyComponent />`);

DOM Interaction

DOM interaction helpers enable you to simulate user interactions such as clicking buttons or filling in input fields. This helps in testing how your application responds to user actions.

import { click, fillIn } from '@ember/test-helpers';

await click('.my-button');
await fillIn('.my-input', 'new value');

Asynchronous Helpers

Asynchronous helpers like `settled` ensure that all asynchronous operations have completed before proceeding with the test. This is crucial for testing asynchronous behavior in your application.

import { settled } from '@ember/test-helpers';

await settled();

Routing Helpers

Routing helpers allow you to navigate to different routes within your application during tests. This is useful for testing the behavior of your application in different states and routes.

import { visit } from '@ember/test-helpers';

await visit('/my-route');

Other packages similar to @ember/test-helpers

Keywords

FAQs

Package last updated on 13 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc