Run some shared teardown once before all of the specs in the describe are run. Note: Be careful, sharing the teardown from a afterAll makes it easy to accidentally leak state between your specs so that they erroneously pass or fail.
Function that contains the code to teardown your specs.
Custom timeout for an async afterAll
Run some shared teardown after each of the specs in the describe in which it is called.
Function that contains the code to teardown your specs.
Custom timeout for an async afterEach.
Run some shared setup once before all of the specs in the describe are run. Note: Be careful, sharing the setup from a beforeAll makes it easy to accidentally leak state between your specs so that they erroneously pass or fail.
Function that contains the code to setup your specs.
Custom timeout for an async beforeAll.
Run some shared setup before each of the specs in the describe in which it is called.
Function that contains the code to setup your specs.
Custom timeout for an async beforeEach.
Create a group of specs (often called a suite).
Textual description of the group
Function for Jasmine to invoke that will define inner suites a specs
Create an expectation for a spec.
Create an expectation for a spec.
Create an expectation for a spec.
Actual computed value to test expectations against.
Create an expectation for a spec.
Create an asynchronous expectation for a spec. Note that the matchers
that are provided by an asynchronous expectation all return promises
which must be either returned from the spec or waited for using await
in order for Jasmine to associate them with the correct spec.
Actual computed value to test expectations against.
Explicitly mark a spec as failed.
Reason for the failure
A focused describe
. If suites or specs are focused, only those that are focused will be executed.
Textual description of the group
Function for Jasmine to invoke that will define inner suites a specs
A focused it
. If suites or specs are focused, only those that are focused will be executed.
Textual description of what this spec is checking
Function that contains the code of your test. If not provided the test will be pending.
Custom timeout for an async spec.
Define a single spec. A spec should contain one or more expectations that test the state of the code. A spec whose expectations all succeed will be passing and a spec with any failures will fail.
Textual description of what this spec is checking
Function that contains the code of your test. If not provided the test will be pending.
Custom timeout for an async spec.
Mark a spec as pending, expectation results will be ignored. If you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending.
Reason the spec is pending.
Sets a user-defined property that will be provided to reporters as part of the properties field of SpecResult.
Sets a user-defined property that will be provided to reporters as part of the properties field of SuiteResult.
Install a spy onto an existing object.
The object upon which to install the Spy
.
The name of the method to replace with a Spy
.
Installs spies on all writable and configurable properties of an object.
The object upon which to install the Spy
s.
Install a spy on a property installed with Object.defineProperty
onto an existing object.
The object upon which to install the Spy
.
The name of the property to replace with a Spy
.
The access type (get|set) of the property to Spy
on.
A temporarily disabled describe
. Specs within an xdescribe will be marked pending and not executed.
Textual description of the group
Function for Jasmine to invoke that will define inner suites a specs
A temporarily disabled it
. The spec will report as pending and will not be executed.
Textual description of what this spec is checking
Function that contains the code of your test. If not provided the test will be pending.
Custom timeout for an async spec.
Generated using TypeDoc
Use jasmine.ImplementationCallback instead.