-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Tchaikovsky1114/test/setting-test-environ…
…ment Set up the test environment and change configured preset
- Loading branch information
Showing
5 changed files
with
9,380 additions
and
13,460 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = { | ||
presets: ['module:metro-react-native-babel-preset'], | ||
presets: ['module:@react-native/babel-preset'], | ||
}; |
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,18 @@ | ||
import { FasterImageView } from ".."; | ||
import React from "react"; | ||
import { render } from '@testing-library/react-native'; | ||
|
||
describe('index', () => { | ||
it('check if the test is working', () => { | ||
expect(true).toBe(true); | ||
}); | ||
|
||
it('check test Image Rendering', () => { | ||
const { toJSON } = render(<FasterImageView style={{ | ||
width: 100, | ||
height: 100, | ||
}} source={require('../../example/images/candle-logo.png')} />); | ||
expect(toJSON()).toMatchSnapshot(); | ||
}); | ||
|
||
}); |
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,3 @@ | ||
import '@testing-library/jest-native'; | ||
import '@testing-library/react-native/extend-expect'; | ||
|
Oops, something went wrong.