I tried to follow rigorously this basic "QUnit for Google Apps Script" tutorial: https://blog.ohheybrian.com/2019/11/unit-testing-gas-part-1-qunit-setup/
But when I connect to the deployed web-app, I get this error "Error: An error has occurred on the server. We apologize for this and invite you to try again later. (line 0, "undefined" file)".
So I tried to make a basic web-app with just this code to make sure a simple web-app works fine:
function doGet(e) {
var params = JSON.stringify(e);
return HtmlService.createHtmlOutput(params);
}
And it works.
But when I just had this line "QUnit.helpers(this);" and the QUnit library, I get the error message mentioned before.
Any idea of what is wrong?
I'm really surprised that Google Developers still not provide a builtin testing framework for GAS and related tutorials. It could encourages to make clean code.
Best regards, Florent