UNICEF AI4D Research Bank - A website that provides user with accessibility to open source datasets, models, and scripts for countries across Southeast Asia (SEA)
Updates automated testing and tests to use a fixtures file instead of live catalog.json files. This should make writing tests easier and more consistent.
Future suggestions: Once more versions of the fixtures file gets uploaded, you will want the create a subfolder in the fixtures directory to track the version history of old fixtures files
Changelog
Add a summary of the things that were changed
[x] add pnpm script for building a test env
[x] remove creation of catalog.json from test.yaml
[x] update test.yaml to build test env
[x] add fixture files
[x] update fetchCatalogItems and fetchFeaturedIds to conditionally get path based on NODE_ENV`
[x] update tests to only consider catalog.json from api/data/fixtures directory
Extra details
Updates automated testing and tests to use a fixtures file instead of live
catalog.json
files. This should make writing tests easier and more consistent.Future suggestions: Once more versions of the fixtures file gets uploaded, you will want the create a subfolder in the fixtures directory to track the version history of old fixtures files
Changelog
Add a summary of the things that were changed
catalog.json
fromtest.yaml
test.yaml
to build test envfetchCatalogItems
andfetchFeaturedIds
to conditionally get path based on NODE_ENV`catalog.json
fromapi/data/fixtures
directoryHow to test