J
J
japan1232018-11-06 00:07:26
Node.js
japan123, 2018-11-06 00:07:26

How to test client js on the server and return the result?

How to implement an api, at the endpoint of which a request arrives with a code in json, for example

"code": "function sum(a, b) {
  return a + b;
}
sum(2, 4)"

tests and responds with something like
5be0b07d78ba0107454491.png
Which way to look at all? Jest, travis? How would this be done correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question