Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions apps/tester-app/__tests__/bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ import {
vi,
} from 'vitest';

const REACT_NATIVE_PATH = require.resolve('react-native', {
paths: [path.dirname(__dirname)],
});
const RELATIVE_REACT_NATIVE_PATH = path.relative(
path.join(__dirname, '..', '..', '..'),
path.dirname(REACT_NATIVE_PATH)
);
const REACT_NATIVE_ANDROID_ASSET_PATH = RELATIVE_REACT_NATIVE_PATH.replaceAll(
path.sep,
'_'
).replaceAll(/[-.@+=]/g, '');

describe('bundle command', () => {
describe.each([
{
Expand Down Expand Up @@ -59,6 +71,7 @@ describe('bundle command', () => {
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle',
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
'assets/src/miniapp/callstack-dark.png',
`assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png`,
'assets/src/assetsTest/localAssets/webpack.png',
'assets/src/assetsTest/localAssets/webpack@2x.png',
'assets/src/assetsTest/localAssets/webpack@3x.png',
Expand All @@ -68,6 +81,7 @@ describe('bundle command', () => {
'react-native-bundle-output/assets/src/assetsTest/localAssets/webpack.png',
'react-native-bundle-output/assets/src/assetsTest/localAssets/webpack@2x.png',
'react-native-bundle-output/assets/src/assetsTest/localAssets/webpack@3x.png',
`react-native-bundle-output/assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png`,
],
},
{
Expand All @@ -81,6 +95,7 @@ describe('bundle command', () => {
'remote.chunk.bundle.map',
'src_asyncChunks_Async_local_tsx.chunk.bundle',
'src_asyncChunks_Async_local_tsx.chunk.bundle.map',
`drawable-mdpi/${REACT_NATIVE_ANDROID_ASSET_PATH}_libraries_newappscreen_components_logo.png`,
'drawable-mdpi/src_assetstest_localassets_webpack.png',
'drawable-xxhdpi/src_assetstest_localassets_webpack.png',
'drawable-xhdpi/src_assetstest_localassets_webpack.png',
Expand All @@ -89,6 +104,7 @@ describe('bundle command', () => {
'react-native-bundle-output/index.android.bundle.map',
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle',
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
`react-native-bundle-output/drawable-mdpi/${REACT_NATIVE_ANDROID_ASSET_PATH}_libraries_newappscreen_components_logo.png`,
'react-native-bundle-output/drawable-mdpi/src_assetstest_localassets_webpack.png',
'react-native-bundle-output/drawable-xxhdpi/src_assetstest_localassets_webpack.png',
'react-native-bundle-output/drawable-xhdpi/src_assetstest_localassets_webpack.png',
Expand Down
10 changes: 10 additions & 0 deletions apps/tester-app/__tests__/start.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest';
let port: number;
let stopServer: () => Promise<void>;

const REACT_NATIVE_PATH = require.resolve('react-native', {
paths: [path.dirname(__dirname)],
});
const RELATIVE_REACT_NATIVE_PATH = path.relative(
path.join(__dirname, '..', '..', '..'),
path.dirname(REACT_NATIVE_PATH)
);

describe('start command', () => {
describe.each([
{
Expand Down Expand Up @@ -50,6 +58,7 @@ describe('start command', () => {
'ios/src_asyncChunks_Async_local_tsx.chunk.bundle',
'ios/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
'assets/src/miniapp/callstack-dark.png?platform=ios',
`assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png?platform=ios`,
'remote-assets/assets/src/assetsTest/remoteAssets/webpack.png?platform=ios',
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@2x.png?platform=ios',
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@3x.png?platform=ios',
Expand All @@ -70,6 +79,7 @@ describe('start command', () => {
'android/src_asyncChunks_Async_local_tsx.chunk.bundle',
'android/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
'assets/src/miniapp/callstack-dark.png?platform=android',
`assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png?platform=android`,
'remote-assets/assets/src/assetsTest/remoteAssets/webpack.png?platform=android',
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@2x.png?platform=android',
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@3x.png?platform=android',
Expand Down
Binary file modified apps/tester-app/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions apps/tester-app/android/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

188 changes: 94 additions & 94 deletions apps/tester-app/android/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading