Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Feb 6, 2022
1 parent ebbf314 commit 90899a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/config/plugin/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const loadPlugin = async function (
modulePrefix,
builtins,
isCombinationDimension,
shape,
mainShape,
sharedConfig,
sharedConfigPropNames,
},
Expand All @@ -48,7 +48,7 @@ const loadPlugin = async function (
const pluginA = { ...plugin }
const { config: pluginConfigDefinitions, ...pluginB } = await normalizePlugin(
pluginA,
shape,
mainShape,
sharedConfigPropNames,
)
const pluginC = { ...pluginB, id }
Expand Down
6 changes: 3 additions & 3 deletions src/config/plugin/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { normalizeConfig } from '../normalize/main.js'
// Validate a plugin has the correct shape and normalize it
export const normalizePlugin = async function (
plugin,
shape,
mainShape,
sharedConfigPropNames,
) {
return await normalizeConfig(plugin, [...COMMON_SHAPE, ...shape], {
return await normalizeConfig(plugin, [...COMMON_MAIN_SHAPE, ...mainShape], {
context: { sharedConfigPropNames },
ErrorType: PluginError,
})
Expand All @@ -35,4 +35,4 @@ const isSharedConfigProp = function (name, sharedConfigPropNames) {
}

// Definitions shared by all plugins
const COMMON_SHAPE = [configPropName]
const COMMON_MAIN_SHAPE = [configPropName]
2 changes: 1 addition & 1 deletion src/report/reporters/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const REPORTER_PLUGIN_TYPE = {
return config.force ? [] : normalizeOptionalArray(value)
},
},
shape: [
mainShape: [
...getReportMethods().map((name) => ({
name,
validate: validateFunction,
Expand Down
2 changes: 1 addition & 1 deletion src/runners/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const RUNNER_PLUGIN_TYPE = {
validate: validateEmptyArray,
},
// Configuration definition for the plugin itself
shape: [
mainShape: [
{
name: 'launch',
required: true,
Expand Down

0 comments on commit 90899a3

Please sign in to comment.