Skip to content

Commit

Permalink
Move __tests__ to src/
Browse files Browse the repository at this point in the history
  • Loading branch information
radex committed Sep 8, 2018
1 parent 7e30b7b commit b46b4ec
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[ignore]
<PROJECT_ROOT>/.cache
<PROJECT_ROOT>/__tests__
<PROJECT_ROOT>/src/__tests__
<PROJECT_ROOT>/dist
<PROJECT_ROOT>/dev
<PROJECT_ROOT>/examples
Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module.exports = {
'^RawRecord$': '<rootDir>/src/RawRecord',
'^Relation$': '<rootDir>/src/Relation',
'^Schema$': '<rootDir>/src/Schema',
'^__tests__/(.*)$': '<rootDir>/__tests__/$1',
'^__tests__/(.*)$': '<rootDir>/src/__tests__/$1',
},
setupTestFrameworkScriptFile: '<rootDir>/__tests__/setup.js',
setupTestFrameworkScriptFile: '<rootDir>/src/__tests__/setup.js',
rootDir: __dirname,
modulePaths: ['<rootDir>/src'],
moduleDirectories: ['<rootDir>/node_modules'],
Expand Down
3 changes: 2 additions & 1 deletion scripts/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ const DEV_PATH = resolvePath('dev')
const DIR_PATH = isDevelopment ? DEV_PATH : DIST_PATH

const DO_NOT_BUILD_PATHS = [
/__tests__/,
/adapters\/__tests__/,
/test\.js/,
/type\.js/,
/integrationTest\.js/,
/integrationTest/,
/__mocks__/,
/\.DS_Store/,
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/index.integrationTests.native.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @flow
import React from 'react'
import { AppRegistry, Text, NativeModules } from 'react-native'
import { Tester, TestHookStore } from 'cavy'
import integrationTests from '../__tests__/integrationTests'
import integrationTests from '__tests__/integrationTests'

// Mysteriously fixes React Native stacktrace symbolication ¯\_(ツ)_/¯
if (typeof global.self === 'undefined') {
Expand Down

0 comments on commit b46b4ec

Please sign in to comment.