A significant portion of the application I work on every day consists of Javascript that outputs a lot of (what might as well be) Excel spreadsheet formulas. Yes, Excel is barely a Turing-complete language, but the formulas are more than complex enough to qualify as "code". They're not meant to be human-readable or human-editable. The users never see these formulas at all, only the values which those formulas evaluate to.
The main problem with our codebase right now is a lack of automated testing, and thus far I've focused my efforts on integration tests which run both the Javascript and the formulas, then assert on the final values. After all, we don't care what formulas were used to create those values, so I don't really see the point in a unit test that asserts on the formulas produced by each piece of Javascript. I'd also expect such unit tests to be exceedingly brittle, as most of our changes to the Javascript code are intended to change the formulas in some way (albeit in a way that shouldn't affect most of the final values).
Note that the code which evaluates the formulas is owned by a different team, and they have loads of unit tests on it. I'm interested in tests for our code, the part that generates the formulas.
Also note that speed is a non-issue; the integration tests I've written so far are so fast they feel more like unit tests.
For the reasons given above I'm convinced that improving our integration test coverage is the higher priority, at least for now, but I honestly can't see any benefit at all to unit testing this code, which feels like a sign that I might be missing something important.
So, is there any purpose to having unit tests as well as integration tests for this particular kind of code, where the sole objective is to generate "code" in some other language, and nobody cares what "intermediate code" is used to achieve the final result?