Skip to content

Commit

Permalink
chore: upgrade more dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Dec 11, 2022
1 parent 4d5ed64 commit 6d5850d
Show file tree
Hide file tree
Showing 19 changed files with 1,756 additions and 2,555 deletions.
11 changes: 3 additions & 8 deletions example/e2e/tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import { expect, it } from './baseFixture';

it('loads the example app', async ({ page }) => {
const snapshot = await page.accessibility.snapshot();
expect(await page.title()).toBe('React Navigation');

expect(
(snapshot?.children as Record<string, unknown>[])?.find(
(it) => it.role === 'heading'
)?.name
).toBe('Examples');
const title = await page.$eval('[role=heading]', (el) => el.textContent);

expect(title).toBe('Examples');
await page.getByRole('heading', { name: 'Examples' }).isVisible()
).toBe(true);
});
1 change: 0 additions & 1 deletion example/e2e/tests/server.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { expect, test as it } from '@playwright/test';
import cheerio from 'cheerio';
import fetch from 'node-fetch';

const server = 'http://localhost:3275';

Expand Down
55 changes: 26 additions & 29 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,57 +14,54 @@
},
"dependencies": {
"@expo/vector-icons": "^13.0.0",
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-async-storage/async-storage": "~1.17.11",
"@react-native-masked-view/masked-view": "0.2.8",
"color": "^4.2.3",
"expo": "^47.0.0",
"expo": "^47.0.8",
"expo-asset": "~8.6.2",
"expo-blur": "~12.0.1",
"expo-linking": "~3.2.3",
"expo-splash-screen": "~0.17.5",
"expo-status-bar": "~1.4.2",
"expo-updates": "~0.15.6",
"koa": "^2.13.4",
"koa": "^2.14.1",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-dom": "18.2.0",
"react-native": "0.70.5",
"react-native-gesture-handler": "~2.8.0",
"react-native-pager-view": "6.0.1",
"react-native-paper": "^4.12.1",
"react-native-paper": "^4.12.5",
"react-native-reanimated": "~2.9.1",
"react-native-safe-area-context": "4.4.1",
"react-native-screens": "~3.18.0",
"react-native-vector-icons": "^9.1.0",
"react-native-web": "~0.18.7"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@babel/node": "^7.14.2",
"@expo/webpack-config": "^0.17.2",
"@playwright/test": "^1.28.0",
"@types/cheerio": "^0.22.29",
"@types/jest-dev-server": "^4.2.0",
"@types/koa": "^2.13.3",
"@types/mock-require": "^2.0.0",
"@types/node-fetch": "^2.5.10",
"@types/react": "~18.0.24",
"@types/react-dom": "~18.0.8",
"@types/react-native": "~0.70.6",
"babel-loader": "^8.2.2",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-expo": "~9.2.1",
"cheerio": "^1.0.0-rc.9",
"expect-type": "^0.13.0",
"expo-cli": "^6.0.5",
"jest-dev-server": "^5.0.3",
"jimp": "^0.16.1",
"@babel/core": "^7.20.5",
"@babel/node": "^7.20.5",
"@expo/webpack-config": "^0.16.27",
"@playwright/test": "^1.28.1",
"@types/cheerio": "^0.22.31",
"@types/jest-dev-server": "^5.0.0",
"@types/koa": "^2.13.5",
"@types/mock-require": "^2.0.1",
"@types/react": "~18.0.26",
"@types/react-dom": "~18.0.9",
"@types/react-native": "~0.70.8",
"babel-loader": "^8.3.0",
"babel-plugin-module-resolver": "^4.1.0",
"babel-preset-expo": "~9.2.2",
"cheerio": "^1.0.0-rc.12",
"expect-type": "^0.15.0",
"expo-cli": "^6.0.8",
"jest-dev-server": "^6.1.1",
"mock-require": "^3.0.3",
"mock-require-assets": "^0.0.3",
"node-fetch": "^2.6.1",
"nodemon": "^2.0.6",
"nodemon": "^2.0.20",
"npm-run-all": "^4.1.5",
"react-test-renderer": "18.0.0",
"serve": "^11.3.0",
"react-test-renderer": "18.1.0",
"serve": "^14.1.2",
"typescript": "^4.9.4"
}
}
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,22 @@
},
"packageManager": "yarn@3.2.2",
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/generator": "^7.15.4",
"@commitlint/config-conventional": "^12.1.4",
"@evilmartians/lefthook": "^1.0.4",
"@lerna-lite/cli": "^1.12.0",
"@lerna-lite/run": "^1.12.0",
"@types/jest": "^26.0.23",
"babel-jest": "^26.6.3",
"commitlint": "^12.1.4",
"eslint": "^7.27.0",
"@babel/core": "^7.20.5",
"@babel/generator": "^7.20.5",
"@commitlint/config-conventional": "^17.3.0",
"@evilmartians/lefthook": "^1.2.4",
"@lerna-lite/cli": "^1.13.0",
"@lerna-lite/run": "^1.13.0",
"@types/jest": "^29.2.4",
"babel-jest": "^29.3.1",
"commitlint": "^17.3.0",
"eslint": "^8.29.0",
"eslint-config-satya164": "^3.1.12",
"eslint-plugin-simple-import-sort": "^7.0.0",
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.66.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"jest": "^29.3.1",
"metro-react-native-babel-preset": "^0.73.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.0",
"prettier": "^2.8.1",
"typescript": "^4.9.4"
},
"jest": {
Expand Down
8 changes: 4 additions & 4 deletions packages/bottom-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"devDependencies": {
"@react-navigation/native": "workspace:^",
"@testing-library/react-native": "^11.5.0",
"@types/color": "^3.0.1",
"@types/react": "~18.0.24",
"@types/react-native": "~0.70.6",
"del-cli": "^3.0.1",
"@types/color": "^3.0.3",
"@types/react": "~18.0.26",
"@types/react-native": "~0.70.8",
"del-cli": "^5.0.0",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-builder-bob": "^0.20.3",
Expand Down
12 changes: 6 additions & 6 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@
"escape-string-regexp": "^4.0.0",
"nanoid": "^3.1.23",
"query-string": "^7.1.3",
"react-is": "^16.13.0",
"react-is": "^18.2.0",
"use-latest-callback": "^0.1.5"
},
"devDependencies": {
"@testing-library/react-native": "^11.5.0",
"@types/react": "~18.0.24",
"@types/react-is": "^17.0.0",
"del-cli": "^3.0.1",
"immer": "^9.0.2",
"@types/react": "~18.0.26",
"@types/react-is": "^17.0.3",
"del-cli": "^5.0.0",
"immer": "^9.0.16",
"react": "18.1.0",
"react-native-builder-bob": "^0.20.3",
"react-test-renderer": "18.0.0",
"react-test-renderer": "18.1.0",
"typescript": "^4.9.4"
},
"peerDependencies": {
Expand Down
20 changes: 9 additions & 11 deletions packages/core/src/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ it('updates route params with setParams applied to parent', () => {
});
});

it('handles change in route names', async () => {
it('handles change in route names', () => {
const TestNavigator = (props: any): any => {
useNavigationBuilder(MockRouter, props);
return null;
Expand Down Expand Up @@ -773,7 +773,7 @@ it('navigates to nested child in a navigator', () => {
);

expect(element).toMatchInlineSnapshot(
`"[bar-b, {\\"some\\":\\"stuff\\",\\"test\\":42}]"`
`"[bar-b, {"some":"stuff","test":42}]"`
);

act(() =>
Expand All @@ -784,21 +784,21 @@ it('navigates to nested child in a navigator', () => {
);

expect(element).toMatchInlineSnapshot(
`"[bar-a, {\\"lol\\":\\"why\\",\\"whoa\\":\\"test\\"}]"`
`"[bar-a, {"lol":"why","whoa":"test"}]"`
);

act(() => navigation.navigate('bar', { screen: 'bar-b' }));

act(() => navigation.goBack());

expect(element).toMatchInlineSnapshot(
`"[bar-a, {\\"lol\\":\\"why\\",\\"whoa\\":\\"test\\"}]"`
`"[bar-a, {"lol":"why","whoa":"test"}]"`
);

act(() => navigation.navigate('bar', { screen: 'bar-b' }));

expect(element).toMatchInlineSnapshot(
`"[bar-b, {\\"some\\":\\"stuff\\",\\"test\\":42,\\"whoa\\":\\"test\\"}]"`
`"[bar-b, {"some":"stuff","test":42,"whoa":"test"}]"`
);
});

Expand Down Expand Up @@ -923,9 +923,7 @@ it('navigates to nested child in a navigator with initial: false', () => {
})
);

expect(first).toMatchInlineSnapshot(
`"[bar-b, {\\"some\\":\\"stuff\\",\\"test\\":42}]"`
);
expect(first).toMatchInlineSnapshot(`"[bar-b, {"some":"stuff","test":42}]"`);

expect(navigation.getRootState()).toEqual({
index: 2,
Expand Down Expand Up @@ -1029,7 +1027,7 @@ it('navigates to nested child in a navigator with initial: false', () => {
})
);

expect(second).toMatchInlineSnapshot(`"[bar-b, {\\"test\\":42}]"`);
expect(second).toMatchInlineSnapshot(`"[bar-b, {"test":42}]"`);

expect(navigation.getRootState()).toEqual({
index: 2,
Expand Down Expand Up @@ -1120,7 +1118,7 @@ it('navigates to nested child in a navigator with initial: false', () => {
</BaseNavigationContainer>
);

expect(third).toMatchInlineSnapshot(`"[bar-b, {\\"some\\":\\"stuff\\"}]"`);
expect(third).toMatchInlineSnapshot(`"[bar-b, {"some":"stuff"}]"`);

expect(navigation.getRootState()).toEqual({
index: 1,
Expand Down Expand Up @@ -1294,7 +1292,7 @@ it('resets state of a nested child in a navigator', () => {
})
);

expect(first).toMatchInlineSnapshot(`"[bar-a, {\\"test\\":18}]"`);
expect(first).toMatchInlineSnapshot(`"[bar-a, {"test":18}]"`);

expect(navigation.getRootState()).toEqual({
index: 1,
Expand Down
40 changes: 20 additions & 20 deletions packages/core/src/__tests__/useDescriptors.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,25 +153,25 @@ it('sets options with screenOptions prop as an object', () => {
);

expect(root).toMatchInlineSnapshot(`
Array [
<main>
<h1>
Hello world
</h1>
<div>
Test screen A
</div>
</main>,
<main>
<h1>
Hello world
</h1>
<div>
Test screen B
</div>
</main>,
]
`);
[
<main>
<h1>
Hello world
</h1>
<div>
Test screen A
</div>
</main>,
<main>
<h1>
Hello world
</h1>
<div>
Test screen B
</div>
</main>,
]
`);
});

it('sets options with screenOptions prop as a fuction', () => {
Expand Down Expand Up @@ -226,7 +226,7 @@ it('sets options with screenOptions prop as a fuction', () => {
);

expect(root).toMatchInlineSnapshot(`
Array [
[
<main>
<h1>
foo: Jane
Expand Down
6 changes: 3 additions & 3 deletions packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
"clean": "del lib"
},
"dependencies": {
"deep-equal": "^2.0.5",
"deep-equal": "^2.1.0",
"nanoid": "^3.1.23",
"stacktrace-parser": "^0.1.10"
},
"devDependencies": {
"@react-navigation/core": "workspace:^",
"@testing-library/react-native": "^11.5.0",
"@types/deep-equal": "^1.0.1",
"@types/react": "~18.0.24",
"del-cli": "^3.0.1",
"@types/react": "~18.0.26",
"del-cli": "^5.0.0",
"react": "18.1.0",
"react-native-builder-bob": "^0.20.3",
"typescript": "^4.9.4"
Expand Down
6 changes: 3 additions & 3 deletions packages/drawer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"devDependencies": {
"@react-navigation/native": "workspace:^",
"@testing-library/react-native": "^11.5.0",
"@types/react": "~18.0.24",
"@types/react-native": "~0.70.6",
"del-cli": "^3.0.1",
"@types/react": "~18.0.26",
"@types/react-native": "~0.70.8",
"del-cli": "^5.0.0",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-builder-bob": "^0.20.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"@react-native-masked-view/masked-view": "0.2.8",
"@react-navigation/native": "workspace:^",
"@testing-library/react-native": "^11.5.0",
"@types/react": "~18.0.24",
"@types/react-native": "~0.70.6",
"del-cli": "^3.0.1",
"@types/react": "~18.0.26",
"@types/react-native": "~0.70.8",
"del-cli": "^5.0.0",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-builder-bob": "^0.20.3",
Expand Down
10 changes: 5 additions & 5 deletions packages/material-bottom-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
"devDependencies": {
"@react-navigation/native": "workspace:^",
"@testing-library/react-native": "^11.5.0",
"@types/react": "~18.0.24",
"@types/react-native": "~0.70.6",
"@types/react-native-vector-icons": "^6.4.10",
"del-cli": "^3.0.1",
"@types/react": "~18.0.26",
"@types/react-native": "~0.70.8",
"@types/react-native-vector-icons": "^6.4.12",
"del-cli": "^5.0.0",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-builder-bob": "^0.20.3",
"react-native-paper": "^4.12.1",
"react-native-paper": "^4.12.5",
"react-native-safe-area-context": "4.4.1",
"react-native-vector-icons": "^9.1.0",
"typescript": "^4.9.4"
Expand Down
6 changes: 3 additions & 3 deletions packages/material-top-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"devDependencies": {
"@react-navigation/native": "workspace:^",
"@testing-library/react-native": "^11.5.0",
"@types/react": "~18.0.24",
"@types/react-native": "~0.70.6",
"del-cli": "^3.0.1",
"@types/react": "~18.0.26",
"@types/react-native": "~0.70.8",
"del-cli": "^5.0.0",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-builder-bob": "^0.20.3",
Expand Down
Loading

0 comments on commit 6d5850d

Please sign in to comment.