We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476351b commit 68b3b5eCopy full SHA for 68b3b5e
src/pages/index.js
@@ -81,15 +81,15 @@ const textContents = {
81
`,
82
customizableCode: `
83
class MyPlugin {
84
- constructor(mocksServer) {
85
- mocksServer.addSetting({
+ constructor({ core, config }) {
+ this._option = config.addOption({
86
name: "traceMocks",
87
type: "boolean",
88
description: "Trace mocks changes",
89
default: true
90
});
91
92
- mocksServer.onChangeMocks(this._onChangeMocks.bind(this))
+ core.onChangeMocks(this._onChangeMocks.bind(this))
93
}
94
// ...
95
0 commit comments