Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function emit(location) {
return exporter.emit.location(location, emitters)
}
export function emit(location) {
return exporter.emit.location(location, emitters)
}
export async function emitTest({
baseUrl,
test,
tests,
project,
enableOriginTracing,
beforeEachOptions,
}) {
global.baseUrl = baseUrl
const testDeclaration = generateTestDeclaration(test.name)
const result = await exporter.emit.test(test, tests, {
...opts,
testDeclaration,
enableOriginTracing,
project,
})
const suiteName = test.name
const suiteDeclaration = generateSuiteDeclaration(suiteName)
const _suite = await exporter.emit.suite(result, tests, {
...opts,
suiteDeclaration,
suiteName,
project,
beforeEachOptions,
})
return {
filename: generateFilename(test.name),
export function emit(location) {
return exporter.emit.location(location, emitters)
}
export async function emitTest({
baseUrl,
test,
tests,
project,
enableOriginTracing,
beforeEachOptions,
}) {
global.baseUrl = baseUrl
const testDeclaration = generateTestDeclaration(test.name)
const result = await exporter.emit.test(test, tests, {
...opts,
testDeclaration,
enableOriginTracing,
project,
})
const suiteName = test.name
const suiteDeclaration = generateSuiteDeclaration()
var _suite = await exporter.emit.suite(result, tests, {
...opts,
suiteDeclaration,
suiteName,
project,
beforeEachOptions,
})
return {
filename: generateFilename(test.name),
export function emit(location) {
return exporter.emit.selection(location, emitters)
}
export async function emitSuite({
baseUrl,
suite,
tests,
project,
enableOriginTracing,
beforeEachOptions,
}) {
global.baseUrl = baseUrl
const result = await exporter.emit.testsFromSuite(tests, suite, opts, {
enableOriginTracing,
generateTestDeclaration,
project,
})
const suiteDeclaration = generateSuiteDeclaration(suite.name)
const _suite = await exporter.emit.suite(result, tests, {
...opts,
suiteDeclaration,
suite,
project,
beforeEachOptions,
})
return {
filename: generateFilename(suite.name),
body: exporter.emit.orderedSuite(_suite),
}
export async function emitSuite({
baseUrl,
suite,
tests,
project,
enableOriginTracing,
beforeEachOptions,
}) {
global.baseUrl = baseUrl
const result = await exporter.emit.testsFromSuite(tests, suite, opts, {
enableOriginTracing,
generateTestDeclaration,
project,
})
const suiteDeclaration = generateSuiteDeclaration(suite.name)
const _suite = await exporter.emit.suite(result, tests, {
...opts,
suiteDeclaration,
suite,
project,
beforeEachOptions,
})
return {
filename: generateFilename(suite.name),
body: exporter.emit.orderedSuite(_suite),
}
export async function emitSuite({
baseUrl,
suite,
tests,
project,
enableOriginTracing,
beforeEachOptions,
}) {
global.baseUrl = baseUrl
const result = await exporter.emit.testsFromSuite(tests, suite, opts, {
enableOriginTracing,
generateTestDeclaration,
project,
})
const suiteDeclaration = generateSuiteDeclaration(suite.name)
const _suite = await exporter.emit.suite(result, tests, {
...opts,
suiteDeclaration,
suite,
project,
beforeEachOptions,
})
return {
filename: generateFilename(suite.name),
body: exporter.emit.orderedSuite(_suite),
}
}
testDeclaration,
enableOriginTracing,
project,
})
const suiteName = test.name
const suiteDeclaration = generateSuiteDeclaration(suiteName)
const _suite = await exporter.emit.suite(result, tests, {
...opts,
suiteDeclaration,
suiteName,
project,
beforeEachOptions,
})
return {
filename: generateFilename(test.name),
body: exporter.emit.orderedSuite(_suite),
}
}