Skip to content

Commit

Permalink
test(example): add dev cycle infrastructure - create and sync, but ig…
Browse files Browse the repository at this point in the history
…nore example project
  • Loading branch information
mikehardy committed May 18, 2019
1 parent 617efa1 commit 9e0d402
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
npm-debug.log
.yarn-error.log
coverage
example
9 changes: 5 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = {
// snapshotSerializers: [],

// The test environment that will be used for testing
testEnvironment: 'node'
testEnvironment: 'node',

// Options that will be passed to the testEnvironment
// testEnvironmentOptions: {},
Expand All @@ -146,9 +146,10 @@ module.exports = {
// ],

// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
// testPathIgnorePatterns: [
// "/node_modules/"
// ],
testPathIgnorePatterns: [
'/node_modules/',
'/example/',
],

// The regexp pattern or array of patterns that Jest uses to detect test files
// testRegex: [],
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"main": "./source/index.js",
"bin": "./source/index.js",
"scripts": {
"dev-init": "npx react-native init example",
"dev-sync": "cp -rv package.json source react-native.config.js example/node_modules/react-native-clean-project/",
"test": "jest",
"lint": "eslint . --fix"
},
Expand Down

0 comments on commit 9e0d402

Please sign in to comment.