1. @ephox/mcagar
Tinymce agar wrapper
@ephox/mcagar
Package: @ephox/mcagar
Created by: tinymce
Last modified: Tue, 06 Feb 2024 17:11:48 GMT
Version: 9.0.1
License: MIT
Downloads: 1,606
Repository: https://github.com/tinymce/tinymce

Install

npm install @ephox/mcagar
yarn add @ephox/mcagar

Description

mcagar is a tinymce specific wrapping of agar's testing infrastructure. It is only a collection of modules.

Installation

mcagar is available as an npm package. You can install it via the npm package @ephox/mcagar

Installation for development

You need to use yarn to install the mcagar devDependencies since npm doesn't support package aliasing and that is used in the package.json.

Install from npm

npm install @ephox/mcagar

Usage

Only modules inside the api package should be used in other projects. All other modules are implementation detail. There are two types of modules available: BDD and Pipelines.

BDD modules are useful when testing using behavior-driven development testing, such as with Mocha. For information, see the BDD testing documentation.

Pipeline modules are an in-house testing framework that relies on Agar Step and Chains to create a pipeline of actions to perform. The pipeline syntax is, at the time of writing, slowly being removed and will eventually be deprecated. For information, see the Pipeline testing documentation.

Running tests

The tests can be run using bedrock via yarn test. Note, this will only run the tests on Chrome and will require chromedriver. You can use bedrock directly to test on other browsers. See bedrock for more details.

To run the tests on Chrome:

$ yarn test

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code