Home Reference Source Test Repository

Function

Static Public Summary
public

buildExportNamedDeclaration(local: *, exported: *): *

public

buildMockExportDefaultDeclaration(mock: *, name: *, expression: *): *

public

buildMockExportVar(mock: *, name: *, _name: *, declaration: *): *

public

buildMocktailImport(mock: *): *

public

ensureIdentifier(value: *): *

public

ensureStringLiteral(value: *): *

public

getModuleName(filename: *): *

Static Public

public buildExportNamedDeclaration(local: *, exported: *): * source

import {buildExportNamedDeclaration} from 'babel-plugin-mocktail/src/helpers.js'

Params:

NameTypeAttributeDescription
local *
exported *

Return:

*

public buildMockExportDefaultDeclaration(mock: *, name: *, expression: *): * source

import {buildMockExportDefaultDeclaration} from 'babel-plugin-mocktail/src/helpers.js'

Params:

NameTypeAttributeDescription
mock *
name *
expression *

Return:

*

public buildMockExportVar(mock: *, name: *, _name: *, declaration: *): * source

import {buildMockExportVar} from 'babel-plugin-mocktail/src/helpers.js'

Params:

NameTypeAttributeDescription
mock *
name *
_name *
declaration *

Return:

*

public buildMocktailImport(mock: *): * source

import {buildMocktailImport} from 'babel-plugin-mocktail/src/helpers.js'

Params:

NameTypeAttributeDescription
mock *

Return:

*

public ensureIdentifier(value: *): * source

import {ensureIdentifier} from 'babel-plugin-mocktail/src/helpers.js'

Params:

NameTypeAttributeDescription
value *

Return:

*

public ensureStringLiteral(value: *): * source

import {ensureStringLiteral} from 'babel-plugin-mocktail/src/helpers.js'

Params:

NameTypeAttributeDescription
value *

Return:

*

public getModuleName(filename: *): * source

import {getModuleName} from 'babel-plugin-mocktail/src/helpers.js'

Params:

NameTypeAttributeDescription
filename *

Return:

*