Skip to content

Commit 7f0b657

Browse files
committed
chore: bump biome to 2.4.6
1 parent c22393c commit 7f0b657

61 files changed

Lines changed: 406 additions & 373 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/tester-app/__tests__/bundle.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('bundle command', () => {
144144
webpackConfig: path.join(__dirname, 'configs', configFile),
145145
};
146146

147-
// @ts-ignore
147+
// @ts-expect-error
148148
await bundleCommand.func([''], config, args);
149149

150150
const files = await globby(['**/*'], { cwd: TMP_DIR, dot: true });

apps/tester-app/__tests__/start.test.ts

Lines changed: 73 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -78,87 +78,81 @@ describe('start command', () => {
7878
'src/ui/undraw_Developer_activity_re_39tg.svg',
7979
],
8080
},
81-
])(
82-
'should successfully produce bundle assets',
83-
({ platform, requests }) => {
84-
const TMP_DIR = path.join(
85-
__dirname,
86-
`out/start/${bundler}/${platform}`
87-
);
88-
89-
beforeAll(async () => {
90-
await fs.promises.rm(TMP_DIR, {
91-
recursive: true,
92-
force: true,
93-
});
94-
95-
port = await getPort();
96-
97-
const config = {
98-
root: path.join(__dirname, '..'),
99-
platforms: { ios: {}, android: {} },
100-
reactNativePath: path.join(
101-
__dirname,
102-
'../node_modules/react-native'
103-
),
104-
};
105-
106-
const args = {
107-
port,
108-
platform,
109-
logFile: path.join(TMP_DIR, 'server.log'),
110-
webpackConfig: path.join(__dirname, 'configs', configFile),
111-
};
112-
113-
// @ts-ignore
114-
const { stop } = await startCommand.func([], config, args);
115-
stopServer = stop;
116-
});
117-
118-
afterAll(async () => {
119-
await stopServer();
81+
])('should successfully produce bundle assets', ({
82+
platform,
83+
requests,
84+
}) => {
85+
const TMP_DIR = path.join(__dirname, `out/start/${bundler}/${platform}`);
86+
87+
beforeAll(async () => {
88+
await fs.promises.rm(TMP_DIR, {
89+
recursive: true,
90+
force: true,
12091
});
12192

122-
it(
123-
`for ${platform}`,
124-
async () => {
125-
let response = await fetch(`http://localhost:${port}/`);
126-
await expect(response.text()).resolves.toEqual(
127-
'React Native packager is running'
128-
);
129-
130-
const [bundleRequest, ...assetsRequests] = requests;
131-
132-
response = await fetch(`http://localhost:${port}/${bundleRequest}`);
133-
134-
const responseText = await response.text();
135-
if (responseText.length < 100000) {
136-
console.log(response, responseText);
93+
port = await getPort();
94+
95+
const config = {
96+
root: path.join(__dirname, '..'),
97+
platforms: { ios: {}, android: {} },
98+
reactNativePath: path.join(__dirname, '../node_modules/react-native'),
99+
};
100+
101+
const args = {
102+
port,
103+
platform,
104+
logFile: path.join(TMP_DIR, 'server.log'),
105+
webpackConfig: path.join(__dirname, 'configs', configFile),
106+
};
107+
108+
// @ts-expect-error
109+
const { stop } = await startCommand.func([], config, args);
110+
stopServer = stop;
111+
});
112+
113+
afterAll(async () => {
114+
await stopServer();
115+
});
116+
117+
it(
118+
`for ${platform}`,
119+
async () => {
120+
let response = await fetch(`http://localhost:${port}/`);
121+
await expect(response.text()).resolves.toEqual(
122+
'React Native packager is running'
123+
);
124+
125+
const [bundleRequest, ...assetsRequests] = requests;
126+
127+
response = await fetch(`http://localhost:${port}/${bundleRequest}`);
128+
129+
const responseText = await response.text();
130+
if (responseText.length < 100000) {
131+
console.log(response, responseText);
132+
}
133+
expect(responseText.length).toBeGreaterThan(100000);
134+
135+
const responses = await Promise.all(
136+
assetsRequests.map((asset) =>
137+
fetch(`http://localhost:${port}/${asset}`)
138+
)
139+
);
140+
141+
responses.forEach((response) => {
142+
if (!response.ok) {
143+
console.log(response);
137144
}
138-
expect(responseText.length).toBeGreaterThan(100000);
139-
140-
const responses = await Promise.all(
141-
assetsRequests.map((asset) =>
142-
fetch(`http://localhost:${port}/${asset}`)
143-
)
144-
);
145-
146-
responses.forEach((response) => {
147-
if (!response.ok) {
148-
console.log(response);
149-
}
150-
expect(response.ok).toBe(true);
151-
});
152-
153-
(
154-
await Promise.all(responses.map((response) => response.text()))
155-
).forEach((text) => {
156-
expect(text.length).toBeGreaterThan(0);
157-
});
158-
},
159-
60 * 1000
160-
);
161-
}
162-
);
145+
expect(response.ok).toBe(true);
146+
});
147+
148+
(
149+
await Promise.all(responses.map((response) => response.text()))
150+
).forEach((text) => {
151+
expect(text.length).toBeGreaterThan(0);
152+
});
153+
},
154+
60 * 1000
155+
);
156+
});
163157
});
164158
});

apps/tester-app/src/nativewind/ui/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type VariantProps, cva } from 'class-variance-authority';
1+
import { cva, type VariantProps } from 'class-variance-authority';
22
import * as React from 'react';
33
import { Pressable } from 'react-native';
44
import { TextClassContext } from './Text';

apps/tester-app/src/ui/Section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { StyleSheet, View } from 'react-native';
2-
import { Text } from './Text';
32
import { Colors } from './colors';
3+
import { Text } from './Text';
44
import type { WithChildren } from './types';
55

66
type SectionProps = WithChildren<{

apps/tester-federation-v2/configs/webpack.host-app.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default Repack.defineWebpackConfig((env) => {
2828
],
2929
},
3030
plugins: [
31-
// @ts-ignore
31+
// @ts-expect-error
3232
new Repack.RepackPlugin({
3333
extraChunks: [
3434
{
@@ -38,7 +38,7 @@ export default Repack.defineWebpackConfig((env) => {
3838
},
3939
],
4040
}),
41-
// @ts-ignore
41+
// @ts-expect-error
4242
new Repack.plugins.ModuleFederationPluginV2({
4343
name: 'HostApp',
4444
filename: 'HostApp.container.js.bundle',

apps/tester-federation-v2/configs/webpack.mini-app.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default Repack.defineWebpackConfig((env) => {
2727
],
2828
},
2929
plugins: [
30-
// @ts-ignore
30+
// @ts-expect-error
3131
new Repack.RepackPlugin({
3232
extraChunks: [
3333
{
@@ -37,7 +37,7 @@ export default Repack.defineWebpackConfig((env) => {
3737
},
3838
],
3939
}),
40-
// @ts-ignore
40+
// @ts-expect-error
4141
new Repack.plugins.ModuleFederationPluginV2({
4242
name: 'MiniApp',
4343
filename: 'MiniApp.container.js.bundle',

apps/tester-federation-v2/src/host/navigation/MainNavigator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2-
type NativeStackNavigationProp,
32
createNativeStackNavigator,
3+
type NativeStackNavigationProp,
44
} from '@react-navigation/native-stack';
55
import { StyleSheet } from 'react-native';
66

apps/tester-federation-v2/src/mini/navigation/MainNavigator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
2-
type NativeStackNavigationProp,
32
createNativeStackNavigator,
3+
type NativeStackNavigationProp,
44
} from '@react-navigation/native-stack';
55
import { StyleSheet } from 'react-native';
66

apps/tester-federation/configs/rspack.host-app.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default Repack.defineRspackConfig((env) => {
9898
};
9999

100100
if (process.env.RSDOCTOR) {
101-
// @ts-ignore
101+
// @ts-expect-error
102102
config.plugins?.push(new RsdoctorRspackPlugin());
103103
}
104104

apps/tester-federation/configs/rspack.mini-app.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default Repack.defineRspackConfig((env) => {
9898
};
9999

100100
if (process.env.RSDOCTOR) {
101-
// @ts-ignore
101+
// @ts-expect-error
102102
config.plugins?.push(new RsdoctorRspackPlugin());
103103
}
104104

0 commit comments

Comments
 (0)