Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Automated Javascript and React Testing with Jest #1501

Closed
metas-mk opened this issue Jan 14, 2018 · 1 comment
Closed

Automated Javascript and React Testing with Jest #1501

metas-mk opened this issue Jan 14, 2018 · 1 comment

Comments

@metas-mk
Copy link
Member

metas-mk commented Jan 14, 2018

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-mk metas-mk self-assigned this Jan 14, 2018
@metas-mk metas-mk removed their assignment Feb 8, 2018
metas-ts added a commit that referenced this issue Feb 8, 2018
metas-ts added a commit to metasfresh/metasfresh that referenced this issue Feb 11, 2018
[#3408](#3408) New Product Window for Pharma vertical
[#3445](#3445) Qty TU not correct in purchase invoice jasper
[#829](metasfresh/metasfresh-webui-api-legacy#829) Planning status in manufacturing order not updated
[#3406](#3406) Set Selector in M_Product after Product Data Import
[#3458](#3458) Remove M_Storage-based legacy check from MProduct
[#3413](#3413) Credit Limit data structure as subtab in Businesspartner
[#1501](metasfresh/metasfresh-webui-frontend-legacy#1501) Automated Javascript and React Testing with Jest
[#818](metasfresh/metasfresh-webui-api-legacy#818) Values.valueToJsonObject() shall return JSONNullValue instead of null
[#3454](#3454) Resolve log warning "Skip setting parameter value for X_AD_PInstance_Para[0]"
[#3438](#3438) Qty LU wrong in purchase invoice candidates / invoice
[#3449](#3449) ImportHelper doesn't switch ctx
[#807](metasfresh/metasfresh-webui-api-legacy#807) Quantity to invoice override callout
[#806](metasfresh/metasfresh-webui-api-legacy#806) Add to Transportation Order, Ship and Invoice action in Picking Clearing Tray not respecting the invoice schedule
@metas-rc
Copy link
Member

metas-rc commented Mar 1, 2018

Nothing to test. Moving to done.

@metas-rc metas-rc closed this as completed Mar 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants