This skill allows for the following type of questions:
- "What is a travel warning?"
- "What is a travel alert?"
- "What's the difference between a warning and an alert?"
- "Is it safe in (country name)?"
- "Should I visit (country name)?"
- "Is it ok to visit (country name)?"
- "Is it dangerous in (country name)?"
- "What's going on in (country name)?"
- "Is there any reason to not visit (country name)?"
- "Does (country name) have any warnings or alerts?"
- "How many current warnings and alerts are issued?"
- "How many current alerts are there?"
- "How many current warnings are there?"
This project uses Facebook's Jest for testing and Flow for static type checking. Because flow annotations appear within the source files, running tests on these files would cause errors. Therefore, this project uses Babel's babel-plugin-transform-flow-strip-types
to remove annotations.
To run tests, from the command line, simply type:
test
This will:
- Copy source files for production and place them within the root's
/public
directory. - Run babel to strip these files of all their flow annotations.
- Run jest for testing on these files.