-
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.
Merge branch 'main' into SCRUM-21-portfolio-screen-2
- Loading branch information
Showing
82 changed files
with
4,322 additions
and
3,665 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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"semi": true, | ||
"tabWidth": 2, | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"jsxSingleQuote": true, | ||
"bracketSpacing": true | ||
} | ||
{ | ||
"semi": true, | ||
"tabWidth": 2, | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"jsxSingleQuote": true, | ||
"bracketSpacing": 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
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import { describe, expect, test } from '@jest/globals'; | ||
import { HomeScreen } from '../../src/screens/home/home'; | ||
|
||
describe('Home screen', () => { | ||
test('Test that image is on home screen', () => { | ||
// ARRANGE | ||
// Using any since its irrelevant and this avoids type checks | ||
// (this avoids needing to instantiate a real navigation object) | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const mockNavigation: any = null; | ||
|
||
// ACT | ||
let root; | ||
renderer.act(() => { | ||
root = renderer.create(<HomeScreen navigation={mockNavigation} />); | ||
}); | ||
|
||
// ASSERT | ||
root.root.findByType('Image'); // This will throw an error if there is not exactly one image, so we know the image was rendered if the test succeeds | ||
expect(root.root.findByType('Text').props.children).toBe('Dummy page'); | ||
}); | ||
}); | ||
import React from 'react'; | ||
import renderer from 'react-test-renderer'; | ||
import { describe, expect, test } from '@jest/globals'; | ||
import { HomeScreen } from '../../src/screens/home/home'; | ||
|
||
describe('Home screen', () => { | ||
test('Test that image is on home screen', () => { | ||
// ARRANGE | ||
// Using any since its irrelevant and this avoids type checks | ||
// (this avoids needing to instantiate a real navigation object) | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
const mockNavigation: any = null; | ||
|
||
// ACT | ||
let root; | ||
renderer.act(() => { | ||
root = renderer.create(<HomeScreen navigation={mockNavigation} />); | ||
}); | ||
|
||
// ASSERT | ||
root.root.findByType('Image'); // This will throw an error if there is not exactly one image, so we know the image was rendered if the test succeeds | ||
expect(root.root.findByType('Text').props.children).toBe('Dummy page'); | ||
}); | ||
}); |
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,37 @@ | ||
import 'dotenv/config'; | ||
|
||
export default { | ||
expo: { | ||
name: "3stones", | ||
slug: "frontend", | ||
version: "0.1.0", | ||
orientation: "portrait", | ||
icon: "./assets/images/icon.png", | ||
userInterfaceStyle: "light", | ||
splash: { | ||
image: "./assets/images/splash.png", | ||
resizeMode: "contain", | ||
backgroundColor: "#ffffff" | ||
}, | ||
ios: { | ||
supportsTablet: true, | ||
bundleIdentifier: "com.generate.3stones" | ||
}, | ||
android: { | ||
adaptiveIcon: { | ||
foregroundImage: "./assets/images/adaptive-icon.png", | ||
backgroundColor: "#ffffff" | ||
} | ||
}, | ||
web: { | ||
favicon: "./assets/images/favicon.png" | ||
}, | ||
extra: { | ||
googleApiKey: process.env.GOOGLE_API_KEY, | ||
eas: { | ||
projectId: "27b7d706-8b3c-45f8-ba59-ae05df33c4de" | ||
} | ||
}, | ||
plugins: ["expo-font"] | ||
} | ||
}; |
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
{ | ||
"expo": { | ||
"name": "3stones", | ||
"slug": "frontend", | ||
"version": "0.1.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/images/icon.png", | ||
"userInterfaceStyle": "light", | ||
"splash": { | ||
"image": "./assets/images/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"ios": { | ||
"supportsTablet": true, | ||
"bundleIdentifier": "com.generate.3stones" | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"foregroundImage": "./assets/images/adaptive-icon.png", | ||
"backgroundColor": "#ffffff" | ||
} | ||
}, | ||
"web": { | ||
"favicon": "./assets/images/favicon.png" | ||
}, | ||
"extra": { | ||
"eas": { | ||
"projectId": "27b7d706-8b3c-45f8-ba59-ae05df33c4de" | ||
} | ||
}, | ||
"plugins": ["expo-font"] | ||
} | ||
} | ||
{ | ||
"expo": { | ||
"name": "3stones", | ||
"slug": "frontend", | ||
"version": "0.1.0", | ||
"orientation": "portrait", | ||
"icon": "./assets/images/icon.png", | ||
"userInterfaceStyle": "light", | ||
"splash": { | ||
"image": "./assets/images/splash.png", | ||
"resizeMode": "contain", | ||
"backgroundColor": "#ffffff" | ||
}, | ||
"ios": { | ||
"supportsTablet": true, | ||
"bundleIdentifier": "com.generate.3stones" | ||
}, | ||
"android": { | ||
"adaptiveIcon": { | ||
"foregroundImage": "./assets/images/adaptive-icon.png", | ||
"backgroundColor": "#ffffff" | ||
} | ||
}, | ||
"web": { | ||
"favicon": "./assets/images/favicon.png" | ||
}, | ||
"extra": { | ||
"eas": { | ||
"projectId": "27b7d706-8b3c-45f8-ba59-ae05df33c4de" | ||
} | ||
}, | ||
"plugins": ["expo-font"] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"cli": { | ||
"version": ">= 11.0.3" | ||
}, | ||
"build": { | ||
"development": { | ||
"developmentClient": true, | ||
"distribution": "internal" | ||
}, | ||
"preview": { | ||
"distribution": "internal" | ||
}, | ||
"production": {} | ||
}, | ||
"submit": { | ||
"production": {} | ||
} | ||
} | ||
{ | ||
"cli": { | ||
"version": ">= 11.0.3" | ||
}, | ||
"build": { | ||
"development": { | ||
"developmentClient": true, | ||
"distribution": "internal" | ||
}, | ||
"preview": { | ||
"distribution": "internal" | ||
}, | ||
"production": {} | ||
}, | ||
"submit": { | ||
"production": {} | ||
} | ||
} |
Oops, something went wrong.