Nearest Phase Modulator

    @ephox/mcagar
    TypeScript icon, indicating that this package has built-in type declarations

    8.0.3 • Public • Published

    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

    Keywords

    none

    Install

    npm i @ephox/mcagar

    DownloadsWeekly Downloads

    121

    Version

    8.0.3

    License

    MIT

    Unpacked Size

    251 kB

    Total Files

    129

    Last publish

    Collaborators

    • ephox
    • tinymce