-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make react-native package ESM only (#300)
* Update react-native package to ESM only and setup Detox * Add changeset
- Loading branch information
1 parent
f68eb94
commit a359810
Showing
16 changed files
with
1,003 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@quiltt/react-native": patch | ||
"@quiltt/react": patch | ||
"@quiltt/core": patch | ||
--- | ||
|
||
Make @quiltt/react-native ESM only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,7 @@ app-example | |
|
||
# App builds | ||
android/ | ||
ios/ | ||
ios/ | ||
|
||
# Test artifacts | ||
artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** @type {Detox.DetoxConfig} */ | ||
module.exports = { | ||
testRunner: { | ||
args: { | ||
$0: 'jest', | ||
config: 'e2e/jest.config.js', | ||
}, | ||
jest: { | ||
setupTimeout: 50000, | ||
}, | ||
}, | ||
apps: { | ||
'ios.debug': { | ||
type: 'ios.app', | ||
build: | ||
'xcodebuild -workspace ios/reactnativeexpo.xcworkspace -scheme reactnativeexpo -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build SWIFT_VERSION=5.0 -quiet COMPILER_INDEX_STORE_ENABLE=NO', | ||
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/reactnativeexpo.app', | ||
}, | ||
}, | ||
behavior: { | ||
init: { | ||
exposeGlobals: true, | ||
}, | ||
}, | ||
devices: { | ||
simulator: { | ||
type: 'ios.simulator', | ||
device: { | ||
type: 'iPhone 16 Pro', | ||
}, | ||
}, | ||
}, | ||
configurations: { | ||
'ios.sim.debug': { | ||
device: 'simulator', | ||
app: 'ios.debug', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** @type {import('@jest/types').Config.InitialOptions} */ | ||
module.exports = { | ||
rootDir: '..', | ||
testMatch: ['<rootDir>/e2e/**/*.test.js'], | ||
testTimeout: 60000, | ||
maxWorkers: 1, | ||
globalSetup: 'detox/runners/jest/globalSetup', | ||
globalTeardown: 'detox/runners/jest/globalTeardown', | ||
reporters: ['detox/runners/jest/reporter'], | ||
testEnvironment: 'detox/runners/jest/testEnvironment', | ||
verbose: true, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const { device, element, by, expect, waitFor } = require('detox') | ||
|
||
describe('App Navigation and Basic Features', () => { | ||
beforeAll(async () => { | ||
await device.launchApp({ | ||
newInstance: true, | ||
launchArgs: { detoxURLBlacklistRegex: '(".*127.0.0.1.*")' }, | ||
}) | ||
}, 120000) | ||
|
||
it('should show home tab', async () => { | ||
await waitFor(element(by.text('Home'))) | ||
.toBeVisible() | ||
.withTimeout(10000) | ||
}, 45000) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,11 +34,11 @@ | |
"check-dependency-version-consistency": "4.1.0", | ||
"genversion": "3.2.0", | ||
"happy-dom": "15.10.2", | ||
"turbo": "2.2.3", | ||
"turbo": "2.3.0", | ||
"vite": "5.4.6", | ||
"vite-tsconfig-paths": "5.0.1", | ||
"vitest": "2.0.5", | ||
"vitest-react-native": "0.1.5" | ||
}, | ||
"packageManager": "[email protected].0" | ||
"packageManager": "[email protected].2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.