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

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
derekgreenberg committed Sep 10, 2018
1 parent 69e591d commit e45f5a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 8 additions & 1 deletion boilerplate/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@
"typescript": "2.8.3"
},
"jest": {
"preset": "jest-preset-ignite"
"preset": "jest-preset-ignite",
"testPathIgnorePatterns": [
"/e2e/",
"/node_modules"
],
"globals": {
"__TEST__": true
}
},
"rnpm": {
"assets": [
Expand Down
5 changes: 5 additions & 0 deletions boilerplate/storybook/storybook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ const StorybookUI = getStorybookUI({ port: 9001, host: "localhost", onDeviceUI:
export class StorybookUIRoot extends React.Component {
componentDidMount() {
SplashScreen.hide()
if (typeof __TEST__ === "undefined" || !__TEST__) {
const Reactotron = require("../src/services/reactotron")
const reactotron = new Reactotron.Reactotron()
reactotron.setup()
}
}
render() {
return <StorybookUI />
Expand Down
5 changes: 5 additions & 0 deletions boilerplate/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ import "react-native"
// libraries to mock
import "./mock-i18n"
import "./mock-reactotron"
import "./mock-textinput"

declare global {
var __TEST__
}

0 comments on commit e45f5a7

Please sign in to comment.