Unit Tests
Dataform provides unit testing functionality that allows you to write tests for your actions. The package contains unit tests for the main cases. You could find them in definitions/tests
folder.
The main limitation of this functionality at the moment is that it doesn't support incremental tables. So in the tests before publishing, we should change action type to table
.
// Unit testing working only for table typesessions.getConfig = () => { return { type: "table", };};
You could run unit tests only using Dataform CLI command dataform test
.