version bump to 3.0
This commit is contained in:
@@ -1231,7 +1231,6 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
var focusedRunnables = [];
|
var focusedRunnables = [];
|
||||||
|
|
||||||
this.fdescribe = function(description, specDefinitions) {
|
this.fdescribe = function(description, specDefinitions) {
|
||||||
this.deprecated('fit and fdescribe will cause your suite to report an \'incomplete\' status in Jasmine 3.0');
|
|
||||||
ensureIsNotNested('fdescribe');
|
ensureIsNotNested('fdescribe');
|
||||||
ensureIsFunction(specDefinitions, 'fdescribe');
|
ensureIsFunction(specDefinitions, 'fdescribe');
|
||||||
var suite = suiteFactory(description);
|
var suite = suiteFactory(description);
|
||||||
@@ -1356,7 +1355,6 @@ getJasmineRequireObj().Env = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.fit = function(description, fn, timeout){
|
this.fit = function(description, fn, timeout){
|
||||||
this.deprecated('fit and fdescribe will cause your suite to report an \'incomplete\' status in Jasmine 3.0');
|
|
||||||
ensureIsNotNested('fit');
|
ensureIsNotNested('fit');
|
||||||
ensureIsFunctionOrAsync(fn, 'fit');
|
ensureIsFunctionOrAsync(fn, 'fit');
|
||||||
var spec = specFactory(description, fn, currentDeclarationSuite, timeout);
|
var spec = specFactory(description, fn, currentDeclarationSuite, timeout);
|
||||||
@@ -6022,5 +6020,5 @@ getJasmineRequireObj().UserContext = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getJasmineRequireObj().version = function() {
|
getJasmineRequireObj().version = function() {
|
||||||
return '3.0.0-pre';
|
return '3.0.0';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
#
|
#
|
||||||
module Jasmine
|
module Jasmine
|
||||||
module Core
|
module Core
|
||||||
VERSION = "3.0.0.pre"
|
VERSION = "3.0.0"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "jasmine-core",
|
"name": "jasmine-core",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "3.0.0-pre",
|
"version": "3.0.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/jasmine/jasmine.git"
|
"url": "https://github.com/jasmine/jasmine.git"
|
||||||
|
|||||||
82
release_notes/3.0.md
Normal file
82
release_notes/3.0.md
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
# Jasmine-Core 3.0 Release Notes
|
||||||
|
|
||||||
|
## Summary
|
||||||
|
|
||||||
|
Jasmine 3.0 is a major release of Jasmine, and as such includes some breaking changes in addition to various new features.
|
||||||
|
|
||||||
|
There is also a 2.99 release of Jasmine that will present deprecation warnings for suites that will encounter different behavior in 3.0.
|
||||||
|
|
||||||
|
## Breaking Changes
|
||||||
|
|
||||||
|
* Replace old "catch exceptions" logic with proper fail fast with error reporting
|
||||||
|
- Fixes [#414](https://github.com/jasmine/jasmine/issues/414)
|
||||||
|
- Fixes [jasmine/jasmine-npm#16](https://github.com/jasmine/jasmine/jasmine-npm/issues/16)
|
||||||
|
|
||||||
|
* Detect an Error passed to `done` and add an expectation failure
|
||||||
|
- Fixes [#567](https://github.com/jasmine/jasmine/issues/567)
|
||||||
|
|
||||||
|
* Unify status for xdescribe and xit
|
||||||
|
- Ensure *All's only execute if at least one child will run
|
||||||
|
- Specs will report a status of `excluded` instead of disabled
|
||||||
|
- Fixes [#1418](https://github.com/jasmine/jasmine/issues/1418)
|
||||||
|
|
||||||
|
* Suite level errors all report the same way (on suiteDone)
|
||||||
|
|
||||||
|
* Refactor QueueRunner and remove references to functions that Jasmine is done with
|
||||||
|
|
||||||
|
* expect(null).toEqual(jasmine.any(Object)) no longer passes
|
||||||
|
- Fixes [#1255](https://github.com/jasmine/jasmine/issues/1255)
|
||||||
|
|
||||||
|
* Default to running tests in random order
|
||||||
|
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
* Remove node modules from python wheel, and update languages
|
||||||
|
|
||||||
|
* Allow reporter callbacks to be asynchronous
|
||||||
|
- Fixes [#842](https://github.com/jasmine/jasmine/issues/842)
|
||||||
|
|
||||||
|
* Allow adding custom spy strategies
|
||||||
|
|
||||||
|
* Add the ability to specify the strategy to use for a spy based on which parameters are passed
|
||||||
|
|
||||||
|
* Added links to re-run the suites containing a failing spec
|
||||||
|
|
||||||
|
* Added a toHaveClass matcher
|
||||||
|
|
||||||
|
* More informative pretty-printing of DOM elements
|
||||||
|
|
||||||
|
* Allow jasmine-npm to handle its own load errors
|
||||||
|
|
||||||
|
* Treat random= as a no-op rather than disabling randomization
|
||||||
|
|
||||||
|
* Use prototype for spy strategy for better memory management
|
||||||
|
|
||||||
|
* Remove console.js altogether
|
||||||
|
|
||||||
|
* Add safari 10 and update readme to include edge
|
||||||
|
|
||||||
|
* Determine overall status in core, not reporters
|
||||||
|
|
||||||
|
* Filter Jasmine frames from stack traces
|
||||||
|
|
||||||
|
* Treat afterAll errors at any level as failures
|
||||||
|
|
||||||
|
* Improved reporting of load errors and afterAll errors
|
||||||
|
- Pass file and line number to reporters when present
|
||||||
|
- Show file and line number in the HTML reporter when present
|
||||||
|
- Visually separate adjacent errors in the HTML reporter
|
||||||
|
|
||||||
|
* Report loading errors as loading errors, not afterAll errors
|
||||||
|
|
||||||
|
* HTML reporter reports overall failure if there are any global errors
|
||||||
|
|
||||||
|
* Fail if error events (e.g. syntax errors) occur during loading
|
||||||
|
|
||||||
|
* Allow use of a predicate function to validate thrown exceptions
|
||||||
|
|
||||||
|
* Check truthiness of toThrowError args, not arg count
|
||||||
|
|
||||||
|
------
|
||||||
|
|
||||||
|
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
|
||||||
Reference in New Issue
Block a user