File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
test/integration/features Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ Feature : mocha 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 number Diff line number Diff line change 1+ import { validateOptions , optionsSchemas } from '@form8ion/core' ;
2+
3+ import assert from 'node:assert' ;
4+ import { Then } from '@cucumber/cucumber' ;
5+
6+ // eslint-disable-next-line import/no-extraneous-dependencies,import/no-unresolved
7+ import * as plugin from '@form8ion/mocha-scaffolder' ;
8+
9+ Then ( 'the public interface is compatible with the plugin schema' , async function ( ) {
10+ validateOptions ( optionsSchemas . form8ionPlugin , plugin ) ;
11+ } ) ;
12+
13+ Then ( 'the output produced by the scaffolder is detectable by the predicate' , async function ( ) {
14+ assert . equal ( await plugin . test ( { projectRoot : this . projectRoot } ) , true ) ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments