https://github.com/food-static-data/json-file-schema-validator
https://github.com/food-static-data/json-file-schema-validator
jest jest-tests
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/food-static-data/json-file-schema-validator
- Owner: Food-Static-Data
- License: gpl-3.0
- Created: 2019-07-14T20:19:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T01:37:38.000Z (over 3 years ago)
- Last Synced: 2025-03-17T01:17:17.098Z (over 1 year ago)
- Topics: jest, jest-tests
- Language: JavaScript
- Size: 3.78 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This module will have set of default tests for JSON files that we have or that we will generate in future.
Main task is here: https://github.com/GroceriStar/sd/issues/471
We have a few files, stored at https://github.com/ChickenKyiv/awesome-food-db-strucutures/tree/master/USDA-01-06-2019
- [ ] add tests
- [ ] make it work
- [ ] update structure for data and raw folders
- [ ] update readme file
- [ ] shelljs or shx?
- [ ] make jsonlint script works
- [ ] remove duplicated data from sd repository
- [ ] make it work inside of sd repository and also maybe at generator or at csv-parser
- [ ] separate methods for jsonlint into separated file. before it failed for some reasons... and for quick turnaroun i decide to put everything inside src/index
- https://jestjs.io/docs/en/es6-class-mocks
- https://codewithhugo.com/jest-mock-spy-module-import/
- https://luetkemj.github.io/170421/mocking-modules-in-jest
https://github.com/jest-community/awesome-jest
https://github.com/JamieMason/expect-more/tree/master/packages/expect-more-jest
https://github.com/ChickenKyiv/awesome-food-db-strucutures/tree/master/FAO
#### JSONLint validator
main goal for this module is to make JSONLint validator more easy and separated.
it might be not very important thing for now.
But as we separating our sd-wrapper and it can actually reduce logic of main package.
https://www.npmjs.com/package/validate.io-json
https://www.npmjs.com/package/amanda
https://www.npmjs.com/package/@mojotech/json-type-validation
https://reasonml.chat/t/large-json-schema-usage-with-reason/1432
https://itnext.io/decoding-nested-json-objects-in-reasonml-with-bs-json-4cab75fbe308
https://github.com/Sutor-Design/resources-reasonml
https://www.strv.com/blog/guide-native-reasonml
https://github.com/epoberezkin/ajv
- https://github.com/jest-community/awesome-jest
- https://github.com/JamieMason/expect-more/tree/master/packages/expect-more-jest
- https://github.com/ChickenKyiv/awesome-food-db-strucutures/tree/master/FAO