UNPKG

zoroaster

Version:

A Modern Testing Framework For Node.js With Support For Test Contexts Which Can Be Reused Across Test Suites And Packages. Zoroaster Improves Developer Productivity And Experience With IDE Hints, And Test Reliability.

310 lines (180 loc) 10 kB
## 6 March 2019 ### [3.8.1](https://github.com/artdecocode/zoroaster/compare/v3.8.0...v3.8.1) - [fix] Collapse exports of `default.jsx` test suite into the parent test suite for display (same as `default.js` now). ## 26 February 2019 ### [3.8.0](https://github.com/artdecocode/zoroaster/compare/v3.7.3...v3.8.0) - [feature] Persistent Contexts. ## 22 February 2019 ### [3.7.3](https://github.com/artdecocode/zoroaster/compare/v3.7.2...v3.7.3) - [fix] Attempt to destroy contexts that started to evaluate. ## 19 February 2019 ### [3.7.2](https://github.com/artdecocode/zoroaster/compare/v3.7.1...v3.7.2) - [fix] Ignore the start of the mask result file which does not start with a test heading, e.g., ```js import { TextArea, Select, Form } from '../../src' // returns the correct output (<Form></Form>) /* expected */ (<form></form>) /**/ ``` ## 18 February 2019 ### [3.7.1](https://github.com/artdecocode/zoroaster/compare/v3.7.0...v3.7.1) - [feature] Pass mask input properties to all mask properties such as `getResults`, `getReadable`, `getTransform`, _etc_. ## 16 February 2019 ### [3.7.0](https://github.com/artdecocode/zoroaster/compare/v3.6.7...v3.7.0) - [feature] Pass mask input properties to `getArgs` and `getOptions` for forking. ## 15 February 2019 ### [3.6.7](https://github.com/artdecocode/zoroaster/compare/v3.6.6...v3.6.7) - [deps] Update Dependencies. ## 29 October 2018 ### [3.6.6](https://github.com/artdecocode/zoroaster/compare/v3.6.5...v3.6.5) - [feature] Export the assertions in the main file. ### [3.6.5](https://github.com/artdecocode/zoroaster/compare/v3.6.4...v3.6.5) - [dep] Refactor the runner into `@zoroaster/reducer`. ## 24 October 2018 ### [3.6.4](https://github.com/artdecocode/zoroaster/compare/v3.6.3...v3.6.4) - [feature] Parse inputs from the mask properties. ### [3.6.3](https://github.com/artdecocode/zoroaster/compare/v3.6.2...v3.6.3) - [deps] Refactor mask fork into `@zoroaster/fork`. - [fix/feature] Include answers in the fork stdout. ## 7 October 2018 ### [3.6.2](https://github.com/artdecocode/zoroaster/compare/v3.6.1...v3.6.2) - [deps] Install and use `forkFeed`. ## 29 September 2018 ### [3.6.1](https://github.com/artdecocode/zoroaster/compare/v3.6.0...v3.6.1) - [fix] Make sure options for fork are always returned; set `execArgv` to `[]` always to enable debugging. - [build] Remove source maps from build. ### [3.6.0](https://github.com/artdecocode/zoroaster/compare/v3.5.2...v3.6.0) - [feature] Allow to pass inputs to the `fork` via _ForkConfig_, and log the fork streams. - [deps] Remove `yarn-s` dep. ## 28 September 2018 ### [3.5.2](https://github.com/artdecocode/zoroaster/compare/v3.5.1...v3.5.2) - [fix] Bind inherited methods by using a Proxy. ## 20 September 2018 ### [3.5.1](https://github.com/artdecocode/zoroaster/compare/v3.5.0...v3.5.1) - [fix] Update `alamode@1.5.1` to import babel-transpiled modules correctly. - [doc] Document `alamode` usage, improve introductory description. ### [3.5.0](https://github.com/artdecocode/zoroaster/compare/v3.4.1...v3.5.0) - [feature] Add `forkConfig` option to the mask. ## 17 September 2018 ### [3.4.1](https://github.com/artdecocode/zoroaster/compare/v3.4.0...v3.4.1) - [fix] Allow to pass `async` `getTransform` and `getReadable`. ### [3.4.0](https://github.com/artdecocode/zoroaster/compare/v3.3.0...v3.4.0) - [feature] Rename `streamResult` to `getTransform` and add `getReadable` to test streams which can be constructed using the `input` property of a mask. - [feature] Add the `fork` property to the mask factory. - [fix] Allow `expected` value in the mask to be empty or with a blank line (to test single new lines). ### [3.3.0](https://github.com/artdecocode/zoroaster/compare/v3.2.0...v3.3.0) - [feature] Implement `streamResult` for masks, allowing to easily test `Transform` streams. ## 15 September 2018 ### [3.2.0](https://github.com/artdecocode/zoroaster/compare/v3.1.1...v3.2.0) - [feature] Allow to split tests in a mask file with a custom regular expression. ## 13 September 2018 ### [3.1.2](https://github.com/artdecocode/zoroaster/compare/v3.1.0...v3.1.1), [3.1.1](https://github.com/artdecocode/zoroaster/compare/v3.1.1...v3.1.2) - [deps] Up deps. ### [3.1.0](https://github.com/artdecocode/zoroaster/compare/v3.0.4...v3.1.0) - [feature] Allow to construct mask test suites from a directory. - [deps] Use `@artdeco/clean-stack@1`. ### [3.0.4](https://github.com/artdecocode/zoroaster/compare/v3.0.3...v3.0.4) - [fix] Allow masks to have new lines in inputs. ## 5 September 2018 ### [3.0.3](https://github.com/artdecocode/zoroaster/compare/v3.0.1...v3.0.2) - [deps] Update `assert-throws` to allow testing any of the error properties, and use function assertions. ## 4 September 2018 ### [3.0.2](https://github.com/artdecocode/zoroaster/compare/v3.0.1...v3.0.2) - [build] `ln -s` the `assert` lib instead of proxying modules. ### [3.0.1](https://github.com/artdecocode/zoroaster/compare/v3.0.0...v3.0.1) - [deps] Update `clean-stack`, `erotic`, `assert-throws`. - [fix] Display a missing global error on watch with `beforeExit` listener. ## 1 September 2018 ### [3.0.0](https://github.com/artdecocode/zoroaster/compare/v2.4.0...v3.0.0) - [feature] Focus on !tests and !testsuites. - [feature] Show usage using `usually`. - [feature] Parse args with `argufy`. - [feature] Add the` timeout` argument. - [breaking] Remove passing tests as paths to files, remove `ZOROASTER_TIMEOUT` in favour of CLI argument. - [fix] Fix `MaxListenersExceededWarning` warning. - [doc] Use `documentary` for documentation. ## 22 August 2018 ### [2.4.0](https://github.com/artdecocode/zoroaster/compare/v2.3.0...v2.4.0) - [feature] Require `alamode` for testing of code with `import/export` statements with `-a` flag. ## 18 August 2018 ### [2.3.0](https://github.com/artdecocode/zoroaster/compare/v2.2.2...v2.3.0) - [feature] `makeTestSuite` method to create test suites from masks. ## 16 August 2018 ### [2.2.1, 2.2.2](https://github.com/artdecocode/zoroaster/compare/v2.2.0...v2.2.2) - [fix] Allow to split mask properties without any whitespace. - [test] Add snapshot test for the mask. ## 15 August 2018 <a name="2.2.0"></a> ### [2.2.0](https://github.com/artdecocode/zoroaster/compare/v2.1.1...v2.2.0) - [package] Build w/ [`alamode`](https://alamode.cc) - [feature] Add `getTests` method for mask testing. - [deps] update `assert-diff@2`, `catchment@3`. ## 24 May 2018 <a name="2.1.1"></a> ### [2.1.1](https://github.com/artdecocode/zoroaster/compare/v2.1.0...v2.1.1) - [code] switch to class snapshot context, better context in tests - [readme] documentation for class context as priority over function context <a name="2.1.0"></a> ### [2.1.0](https://github.com/artdecocode/zoroaster/compare/v2.0.0...v2.1.0) - [feature] class contexts. - [feature] `-b` and `-w` shorthand flags ## 17 May 2018 <a name="2.0.0"></a> ### [2.0.0](https://github.com/artdecocode/zoroaster/compare/v1.1.0...v2.0.0) - [ecma] update to modules syntax - [repository] organise files better - [feature] print default test suite without extra `default` indentation - [feature] strip `.js` at the end of test suite directory names - [feature] export `ok` for assertions ## 4 May 2018 <a name="1.1.0"></a> ### [1.1.0](https://github.com/artdecocode/zoroaster/compare/v1.0.0...v1.1.0) - [feature] pass `--babel` to include `@babel/register` - [feature] multiple contexts ## 16 March 2018 <a name="1.0.0"></a> ### [1.0.0](https://github.com/Sobesednik/zoroaster/compare/v1.0.0-beta.2...v1.0.0) - **breaking Node < 8.6** Version 1 🎆 - readme adjustments, simpler example and emoji 🦅 . <a name="1.0.0-beta.2"></a> ### [1.0.0-beta.2](https://github.com/Sobesednik/zoroaster/compare/v0.5.3...v1.0.0-beta.2) (15 March 2018) - update to using ES7 syntax and provide `zoroaster-es5` support. <a name="0.5.3"></a> ### [0.5.3](https://github.com/Sobesednik/zoroaster/compare/v0.5.2...v0.5.3) (2 January 2018) - [dependency] update `assert-throws` to `1.3.0` (return error). <a name="0.5.2"></a> ### [0.5.2](https://github.com/Sobesednik/zoroaster/compare/v0.5.1...v0.5.2) (1 January 2018) - [dependency] update `assert-throws` to `1.2.0` (strict equal, jsdoc, message regex). <a name="0.5.1"></a> ### [0.5.1](https://github.com/Sobesednik/zoroaster/compare/v0.5.0...v0.5.1) (1 January 2018) - [dependency] update `assert-throws` to `1.1.0` (code). <a name="0.5.0"></a> ### [0.5.0](https://github.com/Sobesednik/zoroaster/compare/v0.4.6...v0.5.0) (31 December 2017) - [feature] `zoroaster/assert` module with common assertion methods <a name="0.4.6"></a> ### [0.4.6](https://github.com/Sobesednik/zoroaster/compare/v0.4.5...v0.4.6) (28 May 2017) - [bugfix] run main function on Windows ([eafc0da](https://github.com/Sobesednik/zoroaster/commit/eafc0da)) <a name="0.4.5"></a> ### [0.4.5](https://github.com/Sobesednik/zoroaster/compare/v0.4.4...v0.4.5) (25 May 2017) - [feature] export main function, which spawns `zoroaster` binary ([0b81c9b](https://github.com/Sobesednik/zoroaster/commit/0b81c9b)) <a name="0.4.4"></a> ### [0.4.4](https://github.com/Sobesednik/zoroaster/compare/v0.4.3...v0.4.4) (14 May 2017) - [bugfix] destroy context after test timeout, specific timeout errors for `_evaluateContext`, `test.run` and `context._destroy()` ([7dec23f](https://github.com/Sobesednik/zoroaster/commit/7dec23f)) - [code] use [promto](https://github.com/Sobesednik/promto) to create promises with timeout ## 0.4.2, 0.4.3 (10 May 2017) - [feature] context accepts `_destroy` method - [bugfix] catch runtime errors while evaluating context ## 0.4.1 (7 May 2017) - [feature] context can be a function, which returns a promise ## 0.4.0 (1 May 2017) - [feature] Read context as a property of a test suite. ## 0.3.1 (19 April 2017) - [code] Use `catchment`. - [test] Add integration test. ## 0.3.0 (18 April 2017) - [feature] Implement test and test suite context. - [bugfix] Show output with errors correctly. - [repo] Add changelog.