Skip to content

Commit

Permalink
doc: update doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas committed Oct 16, 2023
1 parent edc5d61 commit 77cf368
Show file tree
Hide file tree
Showing 83 changed files with 3,752 additions and 1,870 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ module.exports = {
project: [
'./tsconfig.json',
'./example/tsconfig.json',
'./scripts/tsconfig.json',
'./fabricexample/tsconfig.json',
'./plugin/src/__tests__/tsconfig.eslint.json',
],
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ jobs:
brew install xcbeautify
- name: Build for detox
run: set -o pipefail && NSUnbufferedIO=YES yarn detox build --configuration ios.debug 2>&1 | xcbeautify -qq
run: set -o pipefail && NSUnbufferedIO=YES yarn detox build --configuration ios.debug.ci 2>&1

- name: Test with detox
if: inputs.NEW_ARCH != 1
run: |
npx detox --version
yarn detox test --configuration ios.debug --debug-synchronization 500 --loglevel trace --record-logs all --take-screenshots all
yarn detox test --configuration ios.debug.ci --debug-synchronization 500 --loglevel trace --record-logs all --take-screenshots all
env:
SKIP_TESTS_NO_METAL: ${{ inputs.MAP_IMPL == 'mapbox' || inputs.MAP_IMPL == 'mapbox11' }}

Expand Down
6 changes: 1 addition & 5 deletions __tests__/__mocks__/react-native.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ jest.mock('react-native/Libraries/Image/resolveAssetSource', () => {
return () => ({ uri: 'asset://test.png' });
});

jest.mock('react-native/Libraries/StyleSheet/StyleSheet', () => {
return {
create: (x) => x,
};
});
jest.mock('../../src/assets/heading.png', () => 'heading.png');

jest.mock('react-native/Libraries/EventEmitter/NativeEventEmitter', () => {
function MockEventEmitter() {}
Expand Down
4 changes: 2 additions & 2 deletions __tests__/components/BackgroundLayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BackgroundLayer from '../../src/components/BackgroundLayer';

describe('BackgroundLayer', () => {
test('renders correctly with default props', () => {
const { container: backgroundLayer } = render(
const { UNSAFE_root: backgroundLayer } = render(
<BackgroundLayer id="requiredBackgroundLayerID" />,
);

Expand All @@ -28,7 +28,7 @@ describe('BackgroundLayer', () => {
style: { visibility: 'none' },
};

const { container: backgroundLayer } = render(
const { UNSAFE_root: backgroundLayer } = render(
<BackgroundLayer {...testProps} />,
);
const { props } = backgroundLayer;
Expand Down
6 changes: 4 additions & 2 deletions __tests__/components/CircleLayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CircleLayer from '../../src/components/CircleLayer';

describe('CircleLayer', () => {
test('renders correctly with default props', () => {
const { container: circleLayer } = render(
const { UNSAFE_root: circleLayer } = render(
<CircleLayer id="requiredCircleLayerID" />,
);
const { props } = circleLayer;
Expand All @@ -27,7 +27,9 @@ describe('CircleLayer', () => {
style: { visibility: 'none' },
};

const { container: circleLayer } = render(<CircleLayer {...customProps} />);
const { UNSAFE_root: circleLayer } = render(
<CircleLayer {...customProps} />,
);
const { props } = circleLayer;

expect(props.id).toStrictEqual(customProps.id);
Expand Down
6 changes: 4 additions & 2 deletions __tests__/components/HeatmapLayer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import HeatmapLayer from '../../src/components/HeatmapLayer';

describe('HeatmapLayer', () => {
test('renders correctly with default props', () => {
const { container: heatmapLayer } = render(
const { UNSAFE_root: heatmapLayer } = render(
<HeatmapLayer id="requiredHeatmapLayerID" />,
);
const { props } = heatmapLayer;
Expand All @@ -25,7 +25,9 @@ describe('HeatmapLayer', () => {
maxZoomLevel: 8,
style: { visibility: 'none' },
};
const { container: heatmapLayer } = render(<HeatmapLayer {...testProps} />);
const { UNSAFE_root: heatmapLayer } = render(
<HeatmapLayer {...testProps} />,
);
const { props } = heatmapLayer;

expect(props.id).toStrictEqual(testProps.id);
Expand Down
55 changes: 0 additions & 55 deletions __tests__/exportTestInterface.js

This file was deleted.

7 changes: 5 additions & 2 deletions docs/Annotation.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<!-- This file was autogenerated from Annotation.tsx do not modify -->



```tsx
import { Annotation } from '@rnmapbox/maps';

Annotation

```


Expand Down Expand Up @@ -46,7 +49,7 @@ FIX ME NO DESCRIPTION
func
```
FIX ME NO DESCRIPTION
*signature:*`(x:number) => number`
*signature:*`(x:number) =&gt; number`

_defaults to:_ `Easing.linear`

Expand All @@ -67,7 +70,7 @@ FIX ME NO DESCRIPTION
func
```
FIX ME NO DESCRIPTION
*signature:*`(event:OnPressEvent) => void`
*signature:*`(event:OnPressEvent) =&gt; void`



Expand Down
Loading

0 comments on commit 77cf368

Please sign in to comment.