diff --git a/docker-compose.yml b/docker-compose.yml index 5997745a6..9d9703d0f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -79,3 +79,7 @@ services: image: python2.7 volumes: - ./tmp/serverless-integration-test-spotinst-python:/app + webtasks-nodejs: + image: node:6.10.3 + volumes: + - ./tmp/serverless-integration-test-webtasks-nodejs:/app diff --git a/lib/plugins/create/create.test.js b/lib/plugins/create/create.test.js index 00567485e..3ec10d292 100644 --- a/lib/plugins/create/create.test.js +++ b/lib/plugins/create/create.test.js @@ -462,6 +462,19 @@ describe('Create', () => { }); }); + it('should generate scaffolding for "webtasks-nodejs" template', () => { + process.chdir(tmpDir); + create.options.template = 'webtasks-nodejs'; + + return create.create().then(() => { + const dirContent = fs.readdirSync(tmpDir); + expect(dirContent).to.include('package.json'); + expect(dirContent).to.include('serverless.yml'); + expect(dirContent).to.include('handler.js'); + expect(dirContent).to.include('.gitignore'); + }); + }); + it('should generate scaffolding for "plugin" template', () => { process.chdir(tmpDir); create.options.template = 'plugin'; diff --git a/tests/templates/test_all_templates b/tests/templates/test_all_templates index 66e47499b..badbe786a 100755 --- a/tests/templates/test_all_templates +++ b/tests/templates/test_all_templates @@ -24,3 +24,4 @@ integration-test aws-nodejs-ecma-script integration-test google-nodejs integration-test spotinst-nodejs integration-test spotinst-python +integration-test webtasks-nodejs