Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
refactor: test dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Nov 27, 2022
1 parent 01f69fd commit 9eed602
Show file tree
Hide file tree
Showing 16 changed files with 763 additions and 424 deletions.
6 changes: 2 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {Config} from '@jest/types';
import expoPreset from 'jest-expo/jest-preset';

process.env.TZ = 'Asia/Seoul';

Expand Down Expand Up @@ -31,14 +30,13 @@ export default async (): Promise<Config.InitialOptions> => {
'.+\\.(css|style|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'babel-jest',
},
setupFiles: [
...expoPreset.setupFiles,
'<rootDir>/test/jestSetup.ts',
'<rootDir>/test/utils/jestSetup.ts',
'./node_modules/react-native-gesture-handler/jestSetup.js',
],
cacheDirectory: '.jest/cache',
setupFilesAfterEnv: [
'@testing-library/jest-native/extend-expect',
'./test/setupTest.ts',
'./test/utils/setupTest.ts',
],
haste: {
defaultPlatform: 'ios',
Expand Down
57 changes: 0 additions & 57 deletions src/components/uis/__tests__/__snapshots__/IntroTemp.test.tsx.snap

This file was deleted.

83 changes: 0 additions & 83 deletions src/providers/__tests__/AppProvider.test.tsx

This file was deleted.

97 changes: 0 additions & 97 deletions src/providers/__tests__/__snapshots__/AppProvider.test.tsx.snap

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import 'react-native';

import {RenderAPI, render} from '@testing-library/react-native';
import {createTestElement, createTestProps} from '../../../../test/testUtils';

import {ReactElement} from 'react';
import StackNavigator from '../RootStack';
import {
createTestElement,
createTestProps,
} from '../../../test/utils/testUtils';

import React from 'react';
import type {ReactElement} from 'react';
import type {RenderAPI} from '@testing-library/react-native';
import StackNavigator from '../../../src/components/navigations/RootStack';
import {render} from '@testing-library/react-native';

let props: any;
let component: ReactElement;
Expand Down
Loading

0 comments on commit 9eed602

Please sign in to comment.