Skip to content

Commit ddf6c48

Browse files
committed
fix(deps): updated the core package and verified plugin compatibility w/ the form8ion plugin schema
1 parent 524bf14 commit ddf6c48

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

package-lock.json

+4-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"vitest": "2.0.4"
8787
},
8888
"dependencies": {
89-
"@form8ion/core": "^4.3.0",
89+
"@form8ion/core": "^4.6.1",
9090
"@form8ion/repository-settings": "^1.1.3",
9191
"@octokit/rest": "^20.0.0",
9292
"@travi/cli-messages": "^1.1.1",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Feature: github as form8ion plugin
2+
3+
Scenario: plugin conventions
4+
When the project is scaffolded
5+
Then the public interface is compatible with the plugin schema
6+
And the output produced by the scaffolder is detectable by the predicate
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import {validateOptions, optionsSchemas} from '@form8ion/core';
2+
3+
import {Then, When} from '@cucumber/cucumber';
4+
import assert from 'node:assert';
5+
6+
// eslint-disable-next-line import/no-extraneous-dependencies,import/no-unresolved
7+
import * as plugin from '@form8ion/github';
8+
9+
When('the github plugin is compared to form8ion plugin conventions', async function () {
10+
await plugin.scaffold({projectRoot: this.projectRoot});
11+
});
12+
13+
Then('the public interface is compatible with the plugin schema', async function () {
14+
validateOptions(optionsSchemas.form8ionPlugin, plugin);
15+
});
16+
17+
Then('the output produced by the scaffolder is detectable by the predicate', async function () {
18+
assert.equal(await plugin.test({projectRoot: this.projectRoot}), true);
19+
});

0 commit comments

Comments
 (0)