Skip to main content

Depot Test

Depot Test is an npm module that you can add to your Depot project to help with testing of Object and View schemas, data loading, validation, etc... Currently it is geared for Snowflake testing only.

Find the depot-test NPM package here

depot-test is a TypeScript layer which wraps a Java backend (depot-test-snowflake, published by the depot-platform project).

The wrapper executes the Java backend JAR file as a Java application and communicates via REST to pass through the relevant arguments setup by your Depot tests that you write with jest.

When this module is published, a matching version of the Snowflake test project JAR file is downloaded and included in the npm module. When you install this package, your node_modules @stage-tech/depot-test directory will contain the JAR under dist/depot-test-snowflake.jar.

Tests communicate with the backend via REST and forward any logs to console.info/error/debug as appropriate.

To use this module, ensure that you have a Java runtime installed locally.

More details on how to use this module can be found in the depot-test documentation.