Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 2.54 KB

File metadata and controls

72 lines (47 loc) · 2.54 KB

Hooks for roc-plugin-test-jest

Hooks

roc

update-settings

Expected to return new settings that should be merged with the existing ones.

Makes it possible to modify the settings object before a command is started and after potential arguments from the command line and configuration file have been parsed. This is a good point to default to some value if no was given or modify something in the settings.

Initial value: Nothing
Expected return value: Object()

Arguments

Name Description Type Required Can be empty
getSettings A function that returns the settings after the context has been initialized. Function No

roc-abstract-plugin-test

run-test-command

Use to add things that should react to the build command being called.

Initial value: Nothing
Expected return value: Nothing

Arguments

Name Description Type Required Can be empty
targets Array(String) Yes No
managedOptions Object() Yes Yes

roc-plugin-test-jest

babel-config

Used to create a Babel configuration to be used with Jest.

Initial value: {}
Expected return value: Object()

Arguments

Name Description Type Required Can be empty
target The target that is used. String No Yes

build-webpack

Used to create a Babel configuration to be used with Jest.

Initial value: {}
Expected return value: Object()

Arguments

Name Description Type Required Can be empty
target The target that is used. String No Yes
babelConfig The target that is used. Object() No Yes