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 759c7a4 commit ebbf314
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions src/config/plugin/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const getPluginDefinitions = function ({
selectProp,
configProp,
commands,
selectPropDefault,
selectPropDefinition,
selectShape: { default: defaultValue = [], ...selectShape },
sharedConfig,
}) {
const pick = amongCommands(commands)
Expand All @@ -27,9 +26,9 @@ const getPluginDefinitions = function ({
{
name: selectProp,
pick,
default: selectPropDefault,
default: defaultValue,
transform: normalizeOptionalArray,
...selectPropDefinition,
...selectShape,
},
{
name: `${selectProp}.*`,
Expand Down
4 changes: 2 additions & 2 deletions src/report/reporters/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const REPORTER_PLUGIN_TYPE = {
commands: ['remove', 'run', 'show'],
isCombinationDimension: false,
builtins: BUILTIN_REPORTERS,
selectPropDefault: DEFAULT_REPORTERS,
selectPropDefinition: {
selectShape: {
default: DEFAULT_REPORTERS,
transform(value, { config }) {
return config.force ? [] : normalizeOptionalArray(value)
},
Expand Down
7 changes: 3 additions & 4 deletions src/runners/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ export const RUNNER_PLUGIN_TYPE = {
isCombinationDimension: true,
// Builtin plugins
builtins: BUILTIN_RUNNERS,
// Default value for the `selectProp`
selectPropDefault: DEFAULT_RUNNERS,
// Additional configuration definition for `selectProp`
selectPropDefinition: {
// Configuration definition for `selectProp`
selectShape: {
default: DEFAULT_RUNNERS,
validate: validateEmptyArray,
},
// Configuration definition for the plugin itself
Expand Down

0 comments on commit ebbf314

Please sign in to comment.