File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import DocumentGenerator from '../src/generate';
5
5
6
6
class ServerlessInterface extends Serverless {
7
7
public service : any = { } ;
8
+ public config : any = { } ;
9
+ public yamlParser : any = { } ;
10
+ public pluginManager : any = { } ;
11
+ public variables : any = { } ;
8
12
}
9
13
10
14
describe ( 'OpenAPI Documentation Generator' , ( ) => {
11
15
it ( 'Generates OpenAPI document' , async ( ) => {
12
16
const serverlessConfig = await fs . readFile ( 'test/fixtures/serverless.yml' ) ;
13
- // console.log(serverlessConfig.toString());
14
- // const fuck = yaml.safeLoad(serverlessConfig.toString());
15
- // console.log(JSON.stringify(fuck, null, 2));
16
17
const sls : ServerlessInterface = new Serverless ( ) ;
17
18
sls . config . update ( {
18
19
servicePath : path . join ( process . cwd ( ) , 'test/fixtures' ) ,
You can’t perform that action at this time.
0 commit comments