React-based web application that enables users to visualize both property graph and RDF data and explore connections between data without having to write graph queries.
I kept getting errors about the import.meta.env.DEV calls in our code. The common fix was to mock the code using that data. But a better approach is to mock the data itself.
Since this is needed globally, I've configured a global setup test file for mocks used everywhere. We can always opt out or override any of these mocked types if needed for specific tests.
I've also added the localforage mock since we always want that mocked when we are testing React state logic.
Validation
Run the tests
Related Issues
Check List
[x] I confirm that my contribution is made under the terms of the Apache 2.0
license.
[x] I have run pnpm checks to ensure code compiles and meets standards.
[x] I have run pnpm test to check if all tests are passing.
[ ] I have covered new added functionality with unit tests if necessary.
Description
I kept getting errors about the
import.meta.env.DEV
calls in our code. The common fix was to mock the code using that data. But a better approach is to mock the data itself.Since this is needed globally, I've configured a global setup test file for mocks used everywhere. We can always opt out or override any of these mocked types if needed for specific tests.
I've also added the
localforage
mock since we always want that mocked when we are testing React state logic.Validation
Related Issues
Check List
pnpm checks
to ensure code compiles and meets standards.pnpm test
to check if all tests are passing.Changelog.md
.