Skip to content

Commit

Permalink
Add parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jun 5, 2022
1 parent 2833442 commit 2cea81a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
38 changes: 21 additions & 17 deletions src/report/reporters/plugin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,30 @@ export const REPORTER_PLUGIN_TYPE = {
modulePrefix: 'spyd-reporter',
duplicates: true,
builtins: BUILTIN_REPORTERS,
shape: [
shape: new Set([
...getReportMethods().map((name) => ({
name,
schema: { typeof: 'function', errorMessage: 'must be a function' },
})),
{
name: 'capabilities',
default: {},
schema: { type: 'object' },
},
{
name: 'capabilities.debugStats',
default: false,
schema: { type: 'boolean' },
},
{
name: 'capabilities.history',
default: false,
schema: { type: 'boolean' },
},
[
{
name: 'capabilities',
default: {},
schema: { type: 'object' },
},
new Set([
{
name: 'capabilities.debugStats',
default: false,
schema: { type: 'boolean' },
},
{
name: 'capabilities.history',
default: false,
schema: { type: 'boolean' },
},
]),
],
{
name: 'defaultOutput',
default: DEFAULT_REPORTER_OUTPUT,
Expand All @@ -38,6 +42,6 @@ export const REPORTER_PLUGIN_TYPE = {
errorMessage: { minLength: 'must not be an empty string' },
},
},
],
]),
shared,
}
4 changes: 2 additions & 2 deletions src/runners/plugin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ export const RUNNER_PLUGIN_TYPE = {
builtins: BUILTIN_RUNNERS,
// Configuration rule for the plugin itself
// Default: empty array
shape: [
shape: new Set([
{
name: 'launch',
required: true,
schema: { typeof: 'function', errorMessage: 'must be a function' },
},
],
]),
// Plugin configuration properties shared by all plugins
// Default: empty array
shared,
Expand Down

0 comments on commit 2cea81a

Please sign in to comment.