Comments (5)
@kukula Hi, can you share parts of your serverless.yml
and getDevices
function file. I'm interested about
functions:
getDevices:
handler: handler.hello
in serverless.yml
and
module.exports.hello = (event, context, callback) => {
in handler js file. And the project structure, so I could replicate the issue.
from serverless-mocha-plugin.
Hi @laardee , thank you, and here are the files:
serverless.yml
:
functions:
getDevices:
handler: handler.getDevices
handler.js
:
module.exports.getDevices = (event, context, callback) => {
from serverless-mocha-plugin.
from serverless-mocha-plugin.
@mpuittinen
yes it is deployed and working. I think there is some problem with camel case name.
when I've tried to create function with sls create function
with camel cased function name I've got:
module.exports. = (event, context, callback) => {
from serverless-mocha-plugin.
anyway I found a workaround. thank you!
from serverless-mocha-plugin.
Related Issues (20)
- Tests duplicates with multiple files HOT 2
- Exit code 0 when tests fail HOT 3
- Support for bdd-lazy-vars
- Remove warning for nodejs10.x runtime
- Is this the end? HOT 1
- sls invoke test -c does not exit. HOT 1
- nyc with this plugin not generate good output HOT 1
- startOffline.sh not working with newer versions of serverless offline HOT 2
- error: node.js 10.x is not supported when running sls create function HOT 2
- Is it planned to release v1.12.0 also on npmjs? HOT 2
- Release support for Node 12 to npm HOT 1
- Post test script fails to run if tests fail
- Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called;
- Error: Cannot find module 'undefined/path/to/functions' HOT 3
- How to run all tests that are in different directories HOT 1
- TypeError: Cannot read property 'handler' of undefined HOT 5
- Support for typescript base projects
- Not working with typescript and serverless v2
- Snyk reports indirect vulnerabilities
- serverless-mocha-plugin plugin does not set types (yet) which will be required in serverless v4.0.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-mocha-plugin.