Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary After this PR we are going to support the following API: Describe: - `describe("Name of the test suite", ()=>{})` - `describe.skip("Name of the test suite", ()=>{})` - Skip test suite - `describe.only("Name of the test suite", ()=>{})` - Run only test cases and test suite(s) with **only** decorator Test: - **default** - `test("Name of the test suite", ()=>{})` - `test.each([1,2,3])("Name of the test suite", ()=>{})` - **skip** ⏭️ - skip test case(s) - `test.skip("Name of the test suite", ()=>{})` - `test.skip.each([1,2,3])("Name of the test suite", ()=>{})` - **only** - run only test case(s) and suite(s) with **only** decorator - `test.only("Name of the test suite", ()=>{})` - `test.only.each([1,2,3])("Name of the test suite", ()=>{})` - **warn**⚠️ - expect `console.warn` to be called - `test.warn("Name of the test suite", "Expected error message", ()=>{})` - `test.warn.each([1,2,3])("Name of the test suite", "Expected error message", ()=>{})` - **failing** - expect error to be thrown - `test.failing("Name of the test suite", "Expected error message", ()=>{})` - `test.failing.each([1,2,3])("Name of the test suite", "Expected error message", ()=>{})` ## Test plan
- Loading branch information
Showing
10 changed files
with
446 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 23 additions & 1 deletion
24
app/src/examples/RuntimeTests/ReanimatedRuntimeTestsRunner/RuntimeTestsRunner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.