metasfresh / metasfresh-webui-frontend-legacy

metasfresh Webui Frontend
GNU General Public License v2.0
57 stars 34 forks source link

Automated Javascript and React Testing with Jest #1501

Closed metas-mk closed 6 years ago

metas-mk commented 6 years ago

Is this a bug or feature request?

Evaluation

What is the current behavior?

The Testing Framework used by Facebook to Test Javascript and React applications is Jest. Check out further Information her https://facebook.github.io/jest/ It seems easy to setup and has a cool feature called snapshots, which allow to ease the creation of valid results for the tests, in environments with fast changing and variable data. This could be a nice feature that we need for our automated testing based on data that can change in database in a short timeframe. Additionally its said that Jest is 3 times faster than Mocha in Test execution.

Which are the steps to reproduce?

None.

What is the expected or desired behavior?

Check and evaluate jest for the testing of metasfresh-webui-frontend.

Install Jest in metasfresh-webui-frontend: yarn add -D jest

Run Jest in watch mode: yarn jest --watch then start test run for all current tests with a

metas-rc commented 6 years ago

Nothing to test. Moving to done.