# Functions

The following functions are available globally.

- `currentSpec()`

  A way to get either the current QuickSpec or AsyncSpec, whichever is relevant to the given context This is intended to be used inside of `beforeSuite` or `afterSuite` closures, in order to access `XCTestCase` APIs (e.g. `expectation(description:)` or `waitForExpectations()`)

  This does not work with standard XCTest APIs - this does not provide the currently executing `XCTestCase` instance for tests defined using `XCTest`.

  #### Declaration

  Swift

      public func currentSpec() -> XCTestCase?

© 2024 Quick Contributors. All rights reserved. (Last updated: 2024-07-23)

Generated by jazzy ♪♫ v0.14.4, a Realm project.