diff --git a/classes/utils_echo_server.default.html b/classes/utils_echo_server.default.html index 9768e867a..2c527f336 100644 --- a/classes/utils_echo_server.default.html +++ b/classes/utils_echo_server.default.html @@ -1,7 +1,7 @@ default | aegir

HTTP echo server for testing purposes.

Example

const EchoServer = require('aegir/utils/echo-server')
const server = new EchoServer()
await server.start()

// search params echo endpoint
const req = await fetch('http://127.0.0.1:3000/echo/query?test=one')
console.log(await req.text())

// body echo endpoint
const req = await fetch('http://127.0.0.1:3000/echo', {
method: 'POST',
body: '{"key": "value"}'
})
console.log(await req.text())

// redirect endpoint
const req = await fetch('http://127.0.0.1:3000/redirect?to=http://127.0.0.1:3000/echo')
console.log(await req.text())

// download endpoint
const req = await fetch('http://127.0.0.1:3000/download?data=helloWorld')
console.log(await req.text())

await server.stop()
-

Constructors

Constructors

Properties

host options polka @@ -14,4 +14,4 @@
  • findPort: undefined | boolean

    flag to check for ports

  • host: undefined | string

    server host

  • port: undefined | number

    server port

    -

Returns default

Properties

host: string
options: {
    findPort: undefined | boolean;
    host: undefined | string;
    port: undefined | number;
}

Type declaration

  • findPort: undefined | boolean
  • host: undefined | string
  • port: undefined | number
polka: Polka
port: number
server: Server<typeof IncomingMessage, typeof ServerResponse>
started: boolean

Methods

\ No newline at end of file +

Returns default

Properties

host: string
options: {
    findPort: undefined | boolean;
    host: undefined | string;
    port: undefined | number;
}

Type declaration

  • findPort: undefined | boolean
  • host: undefined | string
  • port: undefined | number
polka: Polka
port: number
server: Server<typeof IncomingMessage, typeof ServerResponse>
started: boolean

Methods

\ No newline at end of file diff --git a/functions/utils_chai.assert.html b/functions/utils_chai.assert.html index 2753408b8..8d81d9f24 100644 --- a/functions/utils_chai.assert.html +++ b/functions/utils_chai.assert.html @@ -1,7 +1,7 @@ assert | aegir

Function assert

  • Parameters

    • expression: any
    • Optional message: string

    Returns asserts expression

    See

    Chai assert docs

    Example

    import { assert } from 'aegir/chai'

    assert(true)
    -

Properties

Properties

Methods

Throw approximately becomes diff --git a/functions/utils_chai.expect.html b/functions/utils_chai.expect.html index cc2c62410..878eecff4 100644 --- a/functions/utils_chai.expect.html +++ b/functions/utils_chai.expect.html @@ -1,5 +1,5 @@ expect | aegir

Function expect

Methods

Methods

Methods

  • Parameters

    • Optional message: string

    Returns never

  • Parameters

    • actual: any
    • expected: any
    • Optional message: string
    • Optional operator: string

    Returns never

\ No newline at end of file diff --git a/functions/utils_fixtures.default.html b/functions/utils_fixtures.default.html index e90bf197e..d6760c11c 100644 --- a/functions/utils_fixtures.default.html +++ b/functions/utils_fixtures.default.html @@ -7,4 +7,4 @@ the server is able to serve the correct files.

Example

// awesome-tests module
const loadFixture = require('aegir/utils/fixtures')

const myFixture = loadFixture('test/fixtures/coolfixture', 'awesome-tests')
-
\ No newline at end of file +
\ No newline at end of file diff --git a/functions/utils_get_port.default.html b/functions/utils_get_port.default.html index f31188283..522b7dd9b 100644 --- a/functions/utils_get_port.default.html +++ b/functions/utils_get_port.default.html @@ -1,4 +1,4 @@ default | aegir
  • Helper to find an available port to put a server listening on.

    Parameters

    • port: number = 3000
    • host: string = '127.0.0.1'

    Returns Promise<number>

    Example

    const getPort = require('aegir/utils/get-port')
    const port = await getPort(3000, '127.0.0.1')
    // if 3000 is available returns 3000 if not returns a free port.
    -
\ No newline at end of file +
\ No newline at end of file diff --git a/functions/utils_resolve.default.html b/functions/utils_resolve.default.html index f7e19a398..73c69c608 100644 --- a/functions/utils_resolve.default.html +++ b/functions/utils_resolve.default.html @@ -1,2 +1,2 @@ default | aegir
  • Returns the full path to the requested resource, if available

    -

    Parameters

    • filePath: string
    • Optional module: string = ''

    Returns string

\ No newline at end of file +

Parameters

Returns string

\ No newline at end of file diff --git a/modules/src.html b/modules/src.html index b81a48b2d..51c849493 100644 --- a/modules/src.html +++ b/modules/src.html @@ -1,4 +1,4 @@ -src | aegir

Module src

Index

Type Aliases

BuildOptions +src | aegir

Module src

Index

Type Aliases

BuildOptions DependencyCheckOptions DocsOptions GlobalOptions diff --git a/modules/src_env.html b/modules/src_env.html index c5d63ba0c..ebffcb856 100644 --- a/modules/src_env.html +++ b/modules/src_env.html @@ -1,7 +1,7 @@ src/env | aegir

Module src/env

Environment detection for test runs using wherearewe

Example

import { isNode } from 'aegir/env'

if (isNode) {
// do node things
}
-

Index

Variables

Index

Variables

isBrowser isElectron isElectronMain isElectronRenderer diff --git a/modules/utils_chai.html b/modules/utils_chai.html index 42f50f30b..7a3ed0ef5 100644 --- a/modules/utils_chai.html +++ b/modules/utils_chai.html @@ -8,7 +8,7 @@

Example

import { expect } from 'aegir/chai'

expect(true).to.be.true()
-

Index

Namespaces

Index

Namespaces

Variables

Functions

assert chaiAsPromised diff --git a/modules/utils_echo_server.html b/modules/utils_echo_server.html index 54a77dd80..d92baab1a 100644 --- a/modules/utils_echo_server.html +++ b/modules/utils_echo_server.html @@ -1,2 +1,2 @@ -utils/echo-server | aegir

Module utils/echo-server

Index

Classes

default +utils/echo-server | aegir

Module utils/echo-server

Index

Classes

\ No newline at end of file diff --git a/modules/utils_fixtures.html b/modules/utils_fixtures.html index f09bd34bb..76c445226 100644 --- a/modules/utils_fixtures.html +++ b/modules/utils_fixtures.html @@ -1,2 +1,2 @@ -utils/fixtures | aegir

Module utils/fixtures

Index

Functions

default +utils/fixtures | aegir

Module utils/fixtures

Index

Functions

\ No newline at end of file diff --git a/modules/utils_get_port.html b/modules/utils_get_port.html index b8151cc68..5e7890848 100644 --- a/modules/utils_get_port.html +++ b/modules/utils_get_port.html @@ -1,2 +1,2 @@ -utils/get-port | aegir

Module utils/get-port

Index

Functions

default +utils/get-port | aegir

Module utils/get-port

Index

Functions

\ No newline at end of file diff --git a/modules/utils_resolve.html b/modules/utils_resolve.html index 8b7caa3ac..d00908705 100644 --- a/modules/utils_resolve.html +++ b/modules/utils_resolve.html @@ -1,2 +1,2 @@ -utils/resolve | aegir

Module utils/resolve

Index

Functions

default +utils/resolve | aegir

Module utils/resolve

Index

Functions

\ No newline at end of file diff --git a/types/src.BuildOptions.html b/types/src.BuildOptions.html index 4f6508b3f..20c540ebf 100644 --- a/types/src.BuildOptions.html +++ b/types/src.BuildOptions.html @@ -1 +1 @@ -BuildOptions | aegir

Type alias BuildOptions

BuildOptions: BuildOptions
\ No newline at end of file +BuildOptions | aegir

Type alias BuildOptions

BuildOptions: BuildOptions
\ No newline at end of file diff --git a/types/src.DependencyCheckOptions.html b/types/src.DependencyCheckOptions.html index 72befc345..eb5e4f204 100644 --- a/types/src.DependencyCheckOptions.html +++ b/types/src.DependencyCheckOptions.html @@ -1 +1 @@ -DependencyCheckOptions | aegir

Type alias DependencyCheckOptions

DependencyCheckOptions: DependencyCheckOptions
\ No newline at end of file +DependencyCheckOptions | aegir

Type alias DependencyCheckOptions

DependencyCheckOptions: DependencyCheckOptions
\ No newline at end of file diff --git a/types/src.DocsOptions.html b/types/src.DocsOptions.html index 6f5e579e1..c7fdd9f6c 100644 --- a/types/src.DocsOptions.html +++ b/types/src.DocsOptions.html @@ -1 +1 @@ -DocsOptions | aegir

Type alias DocsOptions

DocsOptions: DocsOptions
\ No newline at end of file +DocsOptions | aegir

Type alias DocsOptions

DocsOptions: DocsOptions
\ No newline at end of file diff --git a/types/src.GlobalOptions.html b/types/src.GlobalOptions.html index 22db4e862..00e42b86e 100644 --- a/types/src.GlobalOptions.html +++ b/types/src.GlobalOptions.html @@ -1 +1 @@ -GlobalOptions | aegir

Type alias GlobalOptions

GlobalOptions: GlobalOptions
\ No newline at end of file +GlobalOptions | aegir

Type alias GlobalOptions

GlobalOptions: GlobalOptions
\ No newline at end of file diff --git a/types/src.LintOptions.html b/types/src.LintOptions.html index 1db9df07d..75e5f6c3f 100644 --- a/types/src.LintOptions.html +++ b/types/src.LintOptions.html @@ -1 +1 @@ -LintOptions | aegir

Type alias LintOptions

LintOptions: LintOptions
\ No newline at end of file +LintOptions | aegir

Type alias LintOptions

LintOptions: LintOptions
\ No newline at end of file diff --git a/types/src.Options.html b/types/src.Options.html index 375b2fed5..6520d4f91 100644 --- a/types/src.Options.html +++ b/types/src.Options.html @@ -1 +1 @@ -Options | aegir

Type alias Options

Options: Options
\ No newline at end of file +Options | aegir

Type alias Options

Options: Options
\ No newline at end of file diff --git a/types/src.PartialOptions.html b/types/src.PartialOptions.html index 7b6e795ab..b57f9805a 100644 --- a/types/src.PartialOptions.html +++ b/types/src.PartialOptions.html @@ -1 +1 @@ -PartialOptions | aegir

Type alias PartialOptions

PartialOptions: PartialOptions
\ No newline at end of file +PartialOptions | aegir

Type alias PartialOptions

PartialOptions: PartialOptions
\ No newline at end of file diff --git a/types/src.ReleaseOptions.html b/types/src.ReleaseOptions.html index 37530038c..a4faa28ad 100644 --- a/types/src.ReleaseOptions.html +++ b/types/src.ReleaseOptions.html @@ -1 +1 @@ -ReleaseOptions | aegir

Type alias ReleaseOptions

ReleaseOptions: ReleaseOptions
\ No newline at end of file +ReleaseOptions | aegir

Type alias ReleaseOptions

ReleaseOptions: ReleaseOptions
\ No newline at end of file diff --git a/types/src.TSOptions.html b/types/src.TSOptions.html index d11727f70..8a5698924 100644 --- a/types/src.TSOptions.html +++ b/types/src.TSOptions.html @@ -1 +1 @@ -TSOptions | aegir

Type alias TSOptions

TSOptions: TSOptions
\ No newline at end of file +TSOptions | aegir

Type alias TSOptions

TSOptions: TSOptions
\ No newline at end of file diff --git a/types/src.TestOptions.html b/types/src.TestOptions.html index 18b8b3d75..b03b58e2e 100644 --- a/types/src.TestOptions.html +++ b/types/src.TestOptions.html @@ -1 +1 @@ -TestOptions | aegir

Type alias TestOptions

TestOptions: TestOptions
\ No newline at end of file +TestOptions | aegir

Type alias TestOptions

TestOptions: TestOptions
\ No newline at end of file