Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 833) sorted by relevance

12345678910>>...34

/expo/packages/expo-router/src/fork/__tests__/__snapshots__/
H A DextractPathFromURL.test.ios.ts.snap11 exports[`extractExpoPathFromURL Bare parses "custom:///test/path?foo=bar" 1`] = `"test/path?foo=bar…
25 exports[`extractExpoPathFromURL Bare parses "exp://exp.host/@test/test" 1`] = `"exp.host/@test/test
27 …ctExpoPathFromURL Bare parses "exp://exp.host/@test/test/--/test/path" 1`] = `"exp.host/@test/test
29 …oPathFromURL Bare parses "exp://exp.host/@test/test/--/test/path/--/foobar" 1`] = `"exp.host/@test
31 …PathFromURL Bare parses "exp://exp.host/@test/test/--/test/path?query=param" 1`] = `"exp.host/@tes…
39 exports[`extractExpoPathFromURL Bare parses "https://example.com/test/path" 1`] = `"test/path"`;
47 exports[`extractExpoPathFromURL Bare parses "https://example.com:8000/test/path" 1`] = `"test/path"…
81 exports[`extractExpoPathFromURL Expo Go parses "exp://exp.host/@test/test" 1`] = `""`;
83 …s[`extractExpoPathFromURL Expo Go parses "exp://exp.host/@test/test/--/test/path" 1`] = `"test/pat…
85 …tractExpoPathFromURL Expo Go parses "exp://exp.host/@test/test/--/test/path/--/foobar" 1`] = `"tes…
[all …]
/expo/packages/expo-linking/src/__tests__/__snapshots__/
H A DLinking-test.ts.snap.android19 …ports[`createURL queries for hostUri "exp.host/@test/test" makes url "" 1`] = `"exp://exp.host/@te…
21 …createURL queries for hostUri "exp.host/@test/test" makes url "path/into/app" 1`] = `"exp://exp.ho…
23 …reateURL queries for hostUri "exp.host/@test/test" makes url {"emptyParam": ""} 1`] = `"exp://exp.…
27 …eURL queries for hostUri "exp.host/@test/test" makes url {"lotsOfSlashes": "/////"} 1`] = `"exp://…
29 …eURL queries for hostUri "exp.host/@test/test" makes url {"shouldEscape": "%2b%20"} 1`] = `"exp://…
31 …RL queries for hostUri "exp.host/@test/test" makes url {"undefinedParam": undefined} 1`] = `"exp:/…
79 "path": "test/path",
129 exports[`parse parses "exp://exp.host/@test/test/--/test/path" 1`] = `
132 "path": "test/path",
138 exports[`parse parses "exp://exp.host/@test/test/--/test/path?query=param" 1`] = `
[all …]
H A DLinking-test.ts.snap.ios19 …ports[`createURL queries for hostUri "exp.host/@test/test" makes url "" 1`] = `"exp://exp.host/@te…
21 …createURL queries for hostUri "exp.host/@test/test" makes url "path/into/app" 1`] = `"exp://exp.ho…
23 …reateURL queries for hostUri "exp.host/@test/test" makes url {"emptyParam": ""} 1`] = `"exp://exp.…
27 …eURL queries for hostUri "exp.host/@test/test" makes url {"lotsOfSlashes": "/////"} 1`] = `"exp://…
29 …eURL queries for hostUri "exp.host/@test/test" makes url {"shouldEscape": "%2b%20"} 1`] = `"exp://…
31 …RL queries for hostUri "exp.host/@test/test" makes url {"undefinedParam": undefined} 1`] = `"exp:/…
79 "path": "test/path",
129 exports[`parse parses "exp://exp.host/@test/test/--/test/path" 1`] = `
132 "path": "test/path",
138 exports[`parse parses "exp://exp.host/@test/test/--/test/path?query=param" 1`] = `
[all …]
H A DLinking-test.ts.snap.node19 exports[`createURL queries for hostUri "exp.host/@test/test" makes url "" 1`] = `""`;
79 "path": "test/path",
129 exports[`parse parses "exp://exp.host/@test/test/--/test/path" 1`] = `
132 "path": "@test/test/--/test/path",
138 exports[`parse parses "exp://exp.host/@test/test/--/test/path?query=param" 1`] = `
141 "path": "@test/test/--/test/path",
152 "path": "test/path",
161 "path": "test/path",
172 "path": "test/path",
183 "path": "test/path",
[all …]
H A DLinking-test.ts.snap.web79 "path": "test/path",
110 "path": "--/test/path",
129 exports[`parse parses "exp://exp.host/@test/test/--/test/path" 1`] = `
132 "path": "@test/test/--/test/path",
138 exports[`parse parses "exp://exp.host/@test/test/--/test/path?query=param" 1`] = `
141 "path": "@test/test/--/test/path",
152 "path": "test/path",
161 "path": "test/path",
172 "path": "test/path",
183 "path": "test/path",
[all …]
/expo/packages/expo-image-manipulator/src/__tests__/
H A Dvalidators-test.ts12 test('invalid', () => {
18 test('valid', () => {
39 test('invalid', () => {
52 test('valid', () => {
69 test('invalid', () => {
78 test('valid', () => {
90 test('invalid', () => {
99 test('valid', () => {
111 test('invalid', () => {
123 test('valid', () => {
[all …]
/expo/docs/common/
H A Derror-utilities.test.ts3 test('redirects old building-standalone-apps paths versioned path', () => {
13 test('redirects version vX.0.0 renamed path', () => {
20 test('redirects version latest renamed path', () => {
27 test('redirects versionless renamed path', () => {
34 test('redirects versioned non-renamed path', () => {
41 test('does not redirect non-renamed path', () => {
48 test('adds forward slash to end of path', () => {
55 test('redirects old versions to latest', () => {
62 test('redirects versionless SDK paths to new version', () => {
69 test('removes null from end of paths', () => {
[all …]
H A DheadingManager.test.ts11 test('instantiates properly', () => {
20 test('_findMetaForTitle not returning same title twice', () => {
29 test('_findMetaForTitle marks meta as processed', () => {
48 test('finds info from meta', () => {
56 test('falls back to base level if unspecified', () => {
62 test('uses argument level over meta level', () => {
70 test('additional params override anything', () => {
82 test('level out of range unlisted', () => {
92 test('explicitly hidden are unlisted', () => {
/expo/packages/expo-test-runner/src/commands/
H A DRunTest.ts10 test: string; property
13 function findTest(config: Config, test: string): [string, Application] {
18 if (test === testName) {
24 throw new Error(`Couldn't find test: ${test}`);
28 const [appName, app] = findTest(config, options.test);
29 const test = app.tests[options.test]; constant
39 await preset.build(options.path, test);
42 await preset.run(options.path, test);
/expo/packages/@expo/metro-config/src/transformer/
H A DcreateExoticTransformer.ts60 return nodeModuleMatcher.test(filename) && !impossibleNodeModuleMatcher.test(filename)
72 test: createModuleMatcher({ moduleIds: ['.*/lib/commonjs/'], folders: nodeModulesPaths }),
80 test: createReactNativeMatcher({ folders: nodeModulesPaths }),
88 test: createExpoMatcher({ folders: nodeModulesPaths }),
96 test: createKnownCommunityMatcher({
110 test: () => true,
118 test: () => true,
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/records/
H A DRecordTypeValidatorsTest.kt82 for (test in testCases) { in test integration between range validators and record() method
83 …val exception = runCatching { convert(test.getJSObject(), test.recordClass.createType()) }.excepti… in test integration between range validators and record()
85 if (test.shouldThrow) { in test integration between range validators and record()
130 for (test in testCases) { in test integration between is not empty validator and record() method
131 …val exception = runCatching { convert(test.getJSObject(), test.recordClass.createType()) }.excepti… in test integration between is not empty validator and record()
133 if (test.shouldThrow) { in test integration between is not empty validator and record()
194 for (test in testCases) { in test integration between size validator and record() method
195 …val exception = runCatching { convert(test.getJSObject(), test.recordClass.createType()) }.excepti… in test integration between size validator and record()
197 if (test.shouldThrow) { in test integration between size validator and record()
226 for (test in testCases) { in test integration between regular expression validator and record() method
[all …]
/expo/docs/ui/components/Footer/
H A DFooter.test.tsx14 test('displays default links', () => {
22 test('displays forums link with tag', () => {
29 test('displays issues link', () => {
61 test('non-versioned page', () => {
65 test('nested non-versioned page', () => {
69 test('versioned index page', () => {
73 test('nested versioned page', () => {
79 test('latest index page', () => {
83 test('nested latest page', () => {
89 test('unversioned index page', () => {
[all …]
/expo/apps/bare-expo/android/app/src/androidTest/java/dev/expo/payments/
H A DBareExpoTestSuite.kt7 import androidx.test.core.app.ActivityScenario.launch
8 import androidx.test.espresso.Espresso.onView
9 import androidx.test.espresso.EspressoException
10 import androidx.test.espresso.PerformException
11 import androidx.test.espresso.UiController
12 import androidx.test.espresso.ViewAction
14 import androidx.test.espresso.matcher.ViewMatchers.isRoot
17 import androidx.test.espresso.util.HumanReadables
18 import androidx.test.espresso.util.TreeIterables
19 import androidx.test.filters.LargeTest
[all …]
/expo/packages/expo-dev-client-components/src/__tests__/
H A Dcreate-primitive.test.tsx8 test('it renders the given component', async () => {
53 test('it passes non-style props', () => {
70 test: {
77 test: {
88 test: {
95 test: {
105 <Heading bg="test">Hi</Heading>
112 selectors.dark.bg.test.backgroundColor
117 <Heading bg="test">Hi</Heading>
124 selectors.light.bg.test.backgroundColor
[all …]
/expo/packages/@expo/metro-config/build/transformer/
H A DcreateExoticTransformer.js76 …return nodeModuleMatcher.test(filename) && !impossibleNodeModuleMatcher.test(filename) ? 'module' …
85 test: (0, _createMatcher().createModuleMatcher)({ property
96 test: (0, _createMatcher().createReactNativeMatcher)({ property
106 test: (0, _createMatcher().createExpoMatcher)({ property
116 test: (0, _createMatcher().createKnownCommunityMatcher)({ property
130 test: () => true,
138 test: () => true,
/expo/packages/expo-structured-headers/android/src/test/java/expo/modules/structuredheaders/
H A DDiagnosticsTests.java64 for (TestCase test : tests) { in diagnostics()
66 Parser p = new Parser(test.input); in diagnostics()
67 switch (test.type) { in diagnostics()
78 fail("unknown type: " + test.type); in diagnostics()
80 fail("Should not parse: " + Arrays.asList(test.input)); in diagnostics()
86 … Assert.assertTrue("does not start with '" + test.message + "' : '" + ex.getMessage() + "'", in diagnostics()
87 ex.getMessage().startsWith(test.message)); in diagnostics()
88 assertEquals(test.position, ex.getPosition()); in diagnostics()
/expo/android/app/src/androidTest/java/host/exp/exponent/utils/
H A DExpoConditionWatcher.kt3 import androidx.test.uiautomator.UiDevice
5 import androidx.test.uiautomator.UiSelector
6 import androidx.test.espresso.Espresso
7 import androidx.test.espresso.matcher.ViewMatchers
8 import androidx.test.espresso.assertion.ViewAssertions
9 import androidx.test.uiautomator.Configurator
/expo/packages/expo-test-runner/
H A DREADME.md2 <h1>expo-test-runner</h1>
4 <p>Script that enchants your test experience!</p>
6 <a href="https://www.npmjs.com/package/expo-test-runner">
7 <img src="https://img.shields.io/npm/v/expo-test-runner?style=flat-square" alt="releases" />
9 <a href="https://github.com/expo/expo-test-runner/blob/main/LICENSE.md">
10 …<img src="https://img.shields.io/github/license/expo/expo-test-runner?style=flat-square" alt="lice…
/expo/docs/components/plugins/api/
H A DAPISectionUtils.test.tsx7 test('void', () => {
12 test('generic type', () => {
17 test('custom type', () => {
48 test('query type', () => {
61 test('Promise', () => {
87 test('Record', () => {
148 test('union', () => {
211 test('generic type', () => {
224 test('tuple type', () => {
258 test('function', () => {
[all …]
/expo/docs/pages/develop/
H A Dunit-testing.mdx29 "test": "jest"
73 ## Unit test
77test, start by writing a simple test for **App.js**. Create a test file for it and call it **App.t…
81 ```js App.test.js
97 To run the test:
99 <Terminal cmd={['$ npm run test']} />
113 '__tests__/screens/home.test.js',
128 Another option for test/file structure:
134 'src/components/button.test.js',
140 ## Snapshot test
[all …]
/expo/packages/expo-dev-client/android/src/androidTest/java/com/expo/modules/devclient/idlingresource/
H A DViewShownIdlingResource.kt4 import androidx.test.espresso.Espresso.onView
5 import androidx.test.espresso.IdlingRegistry
6 import androidx.test.espresso.IdlingResource
7 import androidx.test.espresso.ViewFinder
8 import androidx.test.espresso.assertion.ViewAssertions.doesNotExist
9 import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
10 import androidx.test.espresso.matcher.ViewMatchers.withId
/expo/packages/jest-expo/
H A DREADME.md13 "test": "jest"
28 - Run `npm test` and it should pass
45 |- `View-test.tsx`
46 |-- `__snapshots__/View-test.tsx.snap.android`
47 |-- `__snapshots__/View-test.tsx.snap.ios`
48 |-- `__snapshots__/View-test.tsx.snap.node`
49 |-- `__snapshots__/View-test.tsx.snap.web`
55 - iOS: `-test.ios.*`, `-test.native.*`
56 - Android: `-test.android.*`, `-test.native.*`
57 - web: `-test.web.*`
[all …]
/expo/packages/expo-dev-launcher/ios/Tests/
H A DEXDevLauncherUpdatesHelperTests.m15 NSString *urlString1 = @"https://exp.host/@test/first-app";
17 …per createUpdatesConfigurationWithURL:url1 projectURL:url1 installationID:@"test-installation-id"];
19 NSString *urlString2 = @"https://exp.host/@test/second-app";
21 …per createUpdatesConfigurationWithURL:url2 projectURL:url2 installationID:@"test-installation-id"];
34 …URLWithString:urlString] projectURL:[NSURL URLWithString:projectURLString] installationID:@"test"];
46 NSString *installationID = @"test-installation-id";
47 NSURL *url = [NSURL URLWithString:@"https://exp.host/@test/test"];
/expo/packages/expo-test-runner/build/commands/
H A DRunTest.js33 function findTest(config, test) { argument
37 if (test === testName) {
42 throw new Error(`Couldn't find test: ${test}`);
45 const [appName, app] = findTest(config, options.test);
46 const test = app.tests[options.test];
53 await preset.build(options.path, test);
55 await preset.run(options.path, test);
/expo/.github/workflows/
H A Ddevelopment-client.yml46 working-directory: ../development-client-android-test
62 working-directory: ../development-client-android-test
65 working-directory: ../development-client-android-test
66 …droid-test\",\"plugins\":[\"expo-dev-client\"],\"android\":{\"package\":\"com.devclient.test\"},\"…
68 working-directory: ../development-client-android-test
101 working-directory: ../development-client-ios-test
117 working-directory: ../development-client-ios-test
120 working-directory: ../development-client-ios-test
121 …t-ios-test\",\"plugins\":[\"expo-dev-client\"],\"android\":{\"package\":\"com.devclient.test\"},\"…
123 working-directory: ../development-client-ios-test
[all …]

12345678910>>...34