Commit Graph

3 Commits

Author SHA1 Message Date
Chaiwat Ekkaewnumchai
3fab1f8fd6 Upgrade Babel
Summary: Update babel related dependency to 7.8.3

Reviewed By: passy

Differential Revision: D19408069

fbshipit-source-id: cc9beca6bb9c8d2102332dac3812f52ca7275ec0
2020-01-16 03:58:32 -08:00
John Knox
173ce43192 Add sample app layout snapshot test
Summary:
This is fairly experimental. The test passes, but I don't know how stable it will be when litho changes for example.

However, it's easy to exclude specific attributes from the hierarchy, so maybe we can iterate if it breaks at first.

It just takes a snapshot of the layout hierarchy from headless flipper, and compares it to it's known one.

To run it:
`cd headless-tests && DEVICE=emulator-5554 yarn test` while you have the sample app running on an emulator.

To update the snapshots, just add `-u` to the end of that command.

Reviewed By: danielbuechele

Differential Revision: D15715674

fbshipit-source-id: 4fe6f83b60f8003d48aceb6468d93c075e6c38b8
2019-06-12 03:29:58 -07:00
John Knox
4d6b39ae42 Add test suite for headless
Summary:
Adds a JS test suite for running jest tests against flipper headless binaries. Replaces the jq-based bash script.

Simple sanity test included for all expected top level keys in output JSON.

Reviewed By: passy

Differential Revision: D15625723

fbshipit-source-id: 5ec8e764bcdbb99d9070de704e76a5cd9d8e5dc6
2019-06-07 08:29:45 -07:00