How can I test a trigger function in GAS?
You can write a test function that passes a simulated event to your trigger function. Here’s an example that tests an onEdit() trigger function. It passes an event object with all the information described for “Spreadsheet Edit Events” in Understanding Events. To use it, set your breakpoint in your target onEdit function, select function test_onEdit … Read more