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
import React from 'react'; | |
import { rest } from 'msw'; | |
import userEvent from '@testing-library/user-event'; | |
import { render, screen } from '../testUtils'; | |
import ItemsPage from '../pages/Items'; | |
import server from '../mocks/server'; | |
describe('given Items Page', () => { | |
test('fetches items from API on page load', async () => { | |
render(<ItemsPage />); |
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
import React, { Component } from 'react'; | |
import { DetailScreen, ThirdScreen } from '../screenNames'; | |
import Button from 'react-native-button'; | |
import { | |
Text, View, ActivityIndicator | |
} from 'react-native'; | |
export default class MainComponent extends Component { | |
static navigationOptions = ({ navigation }) => { | |
const { params = {} } = navigation.state; |