Add tests for migration and persisted state (#2118)

* Add tests for migrate

* Add test for persisted.init

* Add legacy transform test

* Set NODE_ENV for testing

* Mock logger

* Set expo var to test
This commit is contained in:
Eric Bailey 2023-12-06 18:41:05 -06:00 committed by GitHub
parent 07fe058577
commit 818c6ae879
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 224 additions and 5 deletions

View file

@ -14,7 +14,7 @@ build-web: ## Compile web bundle, copy to bskyweb directory
.PHONY: test
test: ## Run all tests
yarn test
NODE_ENV=test EXPO_PUBLIC_ENV=test yarn test
.PHONY: lint
lint: ## Run style checks and verify syntax