Releases: qunitjs/qunit
Releases · qunitjs/qunit
2.9.1
2.9.0
2.8.0
Added
- Core: Add support for async functions and Promise-returns to QUnit event handlers. These can now be used via
QUnit.begin
,QUnit.moduleStart
,QUnit.testStart
,QUnit.testDone
,QUnit.moduleDone
, andQUnit.done
. (Stephen Yeung) #1307 - Core: Add stack trace to uncaught error if the browser supports it. (Anand Thakker)
Changed
- HTML Reporter: Add a
running
class to list items, for use by plugins. This was previously removed in 2.7.0. #1323
2.7.1
Fixed
- Core: Avoid breaking tests if the browser throws an error from
performance.measure
. (Gabriel Csapo)
2.7.0
2.6.2
- Build: Bump packages identified by npm audit
- Build: Remove Browserstack
- Build: Upgrade grunt-coveralls to 2.0.0 (#1305)
- CLI: [fixes #121] chokidar -> sane (#1283)
- Tests: fix HTTP 404 error for the Qunit CSS in one of the test files (#1297)
- pushResult() doesn't ever return a value: it's always undefined/void.
- Update
fsevents
subdependency for Node 10 compat - Core: Extract QUnit.module to its own file
- Docs: Fix Jekyll build (remove conflicting file/dir names)
- Docs: Set up redirects for old urls
- Docs: Fix broken QUnit.stop link from assert/async and add redirect (#1291)
- Build: Stop testing on Node 4 & 9
- Docs: Remove unused config and group settings
2.6.1
- Test: Prevent global.QUnit leakage between node and browser tests.
- Core: Ensure test callbacks and module hooks are released.
- Test: Failing test with memory leak via retained hooks/callbacks.
- Test: Add Node 10 testing to CI.
- HTML Reporter: Disable autocomplete on module search input (#1277)
- All: Enable ESLint recommended rules
2.6.0
- Core: Ensure late-add high-priority tests are inserted in proper order
- CLI: Implement --require option
- Test: Refactor startError test to not reload QUnit
- Core: Throw error if no tests are run
- Assert: Support rejecting falsy values against no matcher in rejects
- Assert: Clone actual steps array to avoid passing internal reference
- Test: Add failing test for verifySteps passing reference to log
- Docs: Note that non-string values fail assert.step()
- Assert: Fail test when passing a non string value to assert.step
- Core: Extract currently running test out of config.queue into internal testQueue (#1260)
2.5.1
- Docs: Align assert.throws() and assert.rejects() docs (#1265)
- Build: Use Node 9.x for matrix, cache node_modules
- Docs: Remove unexpected throw statement in examples
- Docs: Note that assert.rejects() also accepts an error object as matcher
- Docs: Mark the second parameter of assert.rejects() as optional
- Docs: Remove redundant expression from verifySteps' description (#1262)
- Docs: Fix typo in docs for QUnit.module (#1257)
- Core: Release all processing locks when Promise rejects from a test
- Assert: Fail test when using step inside a test without verifySteps
- HTML Reporter: Ensure attributes on qunit-fixture are reset.
- Test: Add failing test for fixture attribute leakage.
- Tests: refactor fixture reset tests to be more strict
2.5.0
- Core: Capture the proper stack trace in onUnhandledRejection.
- Core: Remove delay parameters from setTimeouts in processing code (#1246)
- Core: Add QUnit.onUnhandledRejection.
- CLI: Ensure an unhandled rejection results in a failed test.
- Assert: Add
assert.rejects
. - Assert: Reset internal steps list after verifySteps
- HTML Reporter: Ensure unhandled rejection fails.
- Docs: Add example for async test with assert.timeout
- Docs: Add assert.rejects API documentation.
- Docs: assert.verifySteps() called multiple times.
- Tests: Fix no-multi-spaces violation found by latest ESLint
- Tests: Address feedback, use more idiomatic promise chaining.
- Tests: Update CLI test and test fixture to remove stacktrace ambiguity.
- Tests: Update tests for unhandled rejection scenarios.
- Tests: Add test for notrycatch doesn't catch.
- Tests: Reject async test promise when config.notrycatch is set.
- Tests: Add Node 9 to test matrix.
- Tests: Drop Node 7 from CI.
- Build: Use babel-preset-env and .babelrc
- All: Enable ESLint no-multi-spaces rule (#1234)
- All: Fixes spelling of 'occurred'