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:
Name | Type | Attribute | Description |
local | * | ||
exported | * |
Return:
* |
public buildMockExportDefaultDeclaration(mock: *, name: *, expression: *): * source
import {buildMockExportDefaultDeclaration} from 'babel-plugin-mocktail/src/helpers.js'
Params:
Name | Type | Attribute | Description |
mock | * | ||
name | * | ||
expression | * |
Return:
* |
public buildMockExportVar(mock: *, name: *, _name: *, declaration: *): * source
import {buildMockExportVar} from 'babel-plugin-mocktail/src/helpers.js'
Params:
Name | Type | Attribute | Description |
mock | * | ||
name | * | ||
_name | * | ||
declaration | * |
Return:
* |
public buildMocktailImport(mock: *): * source
import {buildMocktailImport} from 'babel-plugin-mocktail/src/helpers.js'
Params:
Name | Type | Attribute | Description |
mock | * |
Return:
* |
public ensureIdentifier(value: *): * source
import {ensureIdentifier} from 'babel-plugin-mocktail/src/helpers.js'
Params:
Name | Type | Attribute | Description |
value | * |
Return:
* |
public ensureStringLiteral(value: *): * source
import {ensureStringLiteral} from 'babel-plugin-mocktail/src/helpers.js'
Params:
Name | Type | Attribute | Description |
value | * |
Return:
* |
public getModuleName(filename: *): * source
import {getModuleName} from 'babel-plugin-mocktail/src/helpers.js'
Params:
Name | Type | Attribute | Description |
filename | * |
Return:
* |