包详细信息

aurelia-testing

aurelia34.8kMIT1.1.0

A collection of helpers for testing Aurelia apps and components.

aurelia, testing

自述文件

aurelia-testing

npm Version ZenHub Join the chat at https://gitter.im/aurelia/discuss CircleCI

This library is part of the Aurelia platform and contains testing helpers for aurelia app and component developers.

To keep up to date on Aurelia, please visit and subscribe to the official blog and our email list. We also invite you to follow us on twitter. If you have questions look around our Discourse forums, chat in our community on Gitter or use stack overflow. Documentation can be found in our developer hub. If you would like to have deeper insight into our development process, please install the ZenHub Chrome or Firefox Extension and visit any of our repository's boards.

Platform Support

This library can be used in the browser.

Building The Code

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

     npm install
    
  3. To build the code, you can now run:

     npm run build
    
  4. You will find the compiled code in the dist folder, available in six module formats: AMD, CommonJS and ES2015, ES2017, native modules, and System.

  5. See package.json scripts section for other tasks related to generating the docs and linting.

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, you can run the tests by executing the following command:

npm test

更新日志

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.1.0 (2022-05-07)

Features

  • component-tester: allow using class in withResources (#100) (3b71fbc)
  • component-tester: use this type in return type to enable better extension (#97)

Bug Fixes

  • Resolve security dependency issues

1.0.0 (2018-09-25)

Bug Fixes

  • code example: fix to the manually handling lifecycle example (#82) (b0fb939)
  • waitFor: reject with Error rather than string (#84) (054dab5)

1.0.0-beta.4.0.0 (2017-11-06)

This entire library was converted to TypeScript. This doesn't involve any breaking changes to the functionality, but the TypeScript definitions are now more accurate and could result in some requried code fixups for TS consumers.

1.0.0-beta.3.0.1 (2017-03-25)

Bug Fixes

  • ComponentTester: import missing waitFor function (#60) (1ecfbfe)
  • ComponentTester: withResources args are optional (2154b8f)

1.0.0-beta.3.0.0 (2017-03-03)

Bug Fixes

  • typings: Typings for StageComponent (#52) (01036e7), closes #46

Features

  • component-tester: add waitForElement method and options (#32) (65eb382)

1.0.0-beta.2.0.0 (2016-07-27)

Bug Fixes

  • component-tester: call detached and unbind when disposing of tested component (#27) (f1585cc)
  • component-tester: handle enhance promise (681cff2)

1.0.0-beta.1.0.0 (2016-06-22)

0.5.0 (2016-06-22)

Features

  • component-tester: remove hard dependency on bootstrapper (3887d19)

0.3.1 (2016-06-08)

Bug Fixes

  • aurelia-testing: missing exports (94bfbaca, closes #10)

0.3.0 (2016-05-31)

Bug Fixes

  • index: correct export strategy (d1a0533f)
  • package: add missing dependencies (466971e9)

Features

  • spies: add view-spy and compile-spy (fc81850f)

0.2.2 (2016-05-17)

Features

  • component-tester: make configure function public (b17e4ac0)

0.2.1 (2016-05-10)

0.2.0 (2016-05-03)

Bug Fixes

  • component-tester: correct type annotations (53f57f08)

Features