Skip to content

Commit

Permalink
[aria-query] Add new definition ranges to keep compatibility with RTL (
Browse files Browse the repository at this point in the history
…flow-typed#4441)

* split up aria-query to be compatible with rtl recent changes

* change the version split breakdown to fit compatibility with flow errors

* add test fix from master pull

* add all tests for writing to flow config
  • Loading branch information
Brianzchen committed May 14, 2023
1 parent e99fe8f commit 86372d9
Show file tree
Hide file tree
Showing 21 changed files with 470 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cli/src/commands/__tests__/runTests-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ describe('run-tests (command)', () => {
'[options]',
'include_warnings=true',
'server.max_workers=0',
'',
'sharedmemory.heap_size=3221225472',
'',
'',
Expand Down Expand Up @@ -112,6 +113,7 @@ describe('run-tests (command)', () => {
'[options]',
'include_warnings=true',
'server.max_workers=0',
'',
'sharedmemory.heap_size=3221225472',
'suppress_comment=\\\\(.\\\\|\\n\\\\)*\\\\$FlowExpectedError',
'',
Expand Down Expand Up @@ -148,6 +150,7 @@ describe('run-tests (command)', () => {
'[options]',
'include_warnings=true',
'server.max_workers=0',
'',
'sharedmemory.heap_size=3221225472',
'suppress_comment=\\\\(.\\\\|\\n\\\\)*\\\\$FlowExpectedError',
'',
Expand Down Expand Up @@ -186,6 +189,7 @@ describe('run-tests (command)', () => {
'[options]',
'include_warnings=true',
'server.max_workers=0',
'',
'sharedmemory.heap_size=3221225472',
'',
'',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('act', () => {
});

it('should fail on incorrect usage of result', () => {
// $FlowExpectedError[unsafe-addition]
// $FlowExpectedError[incompatible-type]
act(() => {}) + 1;
// $FlowExpectedError[prop-missing]
act(() => {}).doesNotExist();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('act', () => {
});

it('should fail on incorrect usage of result', () => {
// $FlowExpectedError[unsafe-addition]
// $FlowExpectedError[incompatible-type]
act(() => {}) + 1;
// $FlowExpectedError[prop-missing]
act(() => {}).doesNotExist();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('act', () => {
});

it('should fail on incorrect usage of result', () => {
// $FlowExpectedError[unsafe-addition]
// $FlowExpectedError[incompatible-type]
act(() => {}) + 1;
// $FlowExpectedError[prop-missing]
act(() => {}).doesNotExist();
Expand Down
Loading

0 comments on commit 86372d9

Please sign in to comment.