diff --git a/squarenotsquare/__tests__/App-test.js b/squarenotsquare/__tests__/App-test.js index bd5d4b9..c741a5f 100644 --- a/squarenotsquare/__tests__/App-test.js +++ b/squarenotsquare/__tests__/App-test.js @@ -11,7 +11,7 @@ import HighScore from '../src/screens/HighScore'; import Home from '../src/screens/Home'; import Splash from '../src/screens/Splash'; import NineKey from '../src/components/NineKey'; -jest.useFakeTimers() +import ScrollingPicker from '../src/components/ScrollingPicker'; it('renders square stack', () => { const mockStore = ConfigStore; @@ -50,4 +50,8 @@ it('renders splash component', () => { it('renders ninekey component', () => { renderer.create() +}) + +it('renders scrolling picker component', () => { + renderer.create( {return true}}/>) }) \ No newline at end of file diff --git a/squarenotsquare/jest.config.js b/squarenotsquare/jest.config.js index 9a7b2dd..721c413 100644 --- a/squarenotsquare/jest.config.js +++ b/squarenotsquare/jest.config.js @@ -4,6 +4,9 @@ module.exports = { verbose: true, setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'], moduleDirectories: ['node_modules', 'src'], + fakeTimers: { + enableGlobally: true + }, moduleNameMapper: { // '@react-native-firebase/messaging: '/__mock__/mockFirebase.js', 'react-native-keychain': '/__mock__/mockKeyStore.js',