Open eatyourgreens opened 3 years ago
Setting PANOPTES_ENV
to staging
in the container environment fixes the tests for app-project
and lib-classifier
but the tests for lib-panoptes-js
assume that PANOPTES_ENV
is undefined. See https://github.com/zooniverse/front-end-monorepo/issues/1915
Package
all
Describe the bug
yarn test
fails, for any package, in a local dev Docker image (front-end-monorepo_dev
) because the webpack build environment and Panoptes API environment (NODE_ENV
andPANOPTES_ENV
) are both set toproduction
.To Reproduce
Steps to reproduce the behavior:
docker compose build
.docker compose run --rm shell
yarn test
oryarn test:ci
.docker compose down
.Expected behavior
Tests should pass.