diff --git a/classes/utils_echo_server.default.html b/classes/utils_echo_server.default.html index ef7b6c189..dd8ea712c 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 ec2a25bc2..9360a7b50 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 c8139d0f9..e59dd97ea 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 c016133f2..d14144637 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 ce62ec4a3..cbe28cfd4 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 ff7f635f1..9a018c884 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 b3b489f02..48374a485 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 356c4f287..46230ec67 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 3ae74172b..5fb0984a8 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 0180245d3..eff1280a5 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 1b458f4dd..201159de8 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 80f635b08..81843fe21 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 be9c5b0f8..1a556753b 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 ca08c2018..fce8b7cf2 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 76f403791..d4a88fe78 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 49dcf81f2..040ce4e15 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 1b582cb6e..1d9eee1b0 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 e1005fc8b..ae3ca06db 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 007ec9da2..a3accda4a 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 5905aae66..a50af18fc 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 2f4f36801..fe051971e 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 f80c90a73..13f00c604 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 6348c0de1..af3f01367 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