GetDKAN / dkan-tools

CLI tools for DKAN site management
https://getdkan.github.io/dkan-tools/
15 stars 14 forks source link

Specify project root for test user creation #343

Closed janette closed 1 year ago

janette commented 1 year ago

Cypress tests are failing because the frontend:build is failing

npm run build

> @civicactions/data-catalog-app@1.0.3 build
> react-scripts build

Creating an optimized production build...
Failed to compile.

./src/theme/index.scss
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1

Switching to a version of data-catalog-app that uses sass rather than node-sass, allows the build to complete

But--- then the tests fail due to this

Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.

So adding the CI=false allows test to not fail on warnings, AND adding wait so that the final test can finish before the tear down starts.