Skip to content

Instantly share code, notes, and snippets.

View TimoGlastra's full-sized avatar
:octocat:
Hacking

Timo Glastra TimoGlastra

:octocat:
Hacking
View GitHub Profile
@TimoGlastra
TimoGlastra / .zshrc
Created September 10, 2018 07:16
ZSH
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/timo/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
stages:
- test
unit:
image: node:10.10
stage: test
script:
- 'echo "Running test job"'
typescript:
image: node:10.10
stage: test
tags:
- docker
before_script:
- apt-get update -qq && apt-get install
- yarn config set cache-folder .yarn
- yarn install
script:
unit:
image: node:10.10
stage: test
tags:
- docker
before_script:
- apt-get update -qq && apt-get install
- yarn config set cache-folder .yarn
- yarn install
script:
{
"jest": {
"preset": "react-native",
"transform": {
"^.+\\.(jsx?|tsx?)$": "babel-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"modulePaths": ["<rootDir>"]
}
import React from "react";
import { Text } from "react-native";
import App from "./App";
import renderer from "react-test-renderer";
describe("<App />", () => {
it("renders correctly", () => {
const tree = renderer.create(<App />).toJSON();
expect(tree).toMatchSnapshot();
{
"extends": "./babel.config.js"
}
"configurations": {
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/SoftwareManagementApp.app",
"build": "xcodebuild -project ios/SoftwareManagementApp.xcodeproj -UseModernBuildSystem=NO -scheme SoftwareManagementApp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"name": "iPhone X"
},
"ios.sim.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/SoftwareManagementApp.app",
"build": "RCT_NO_LAUNCH_PACKAGER=true xcodebuild -project ios/SoftwareManagementApp.xcodeproj -UseModernBuildSystem=NO -scheme SoftwareManagementApp -configuration Release -sdk iphonesimulator -derivedDataPath ios/build",
{
"extends": "../tsconfig",
"compilerOptions": {
"jsx": "react",
"module": "commonjs",
"types": ["detox", "jest"]
},
"include": ["e2e"],
"exclude": ["node_modules"]
}
{
"rootDir": "../",
"setupTestFrameworkScriptFile": "./e2e/init.js",
"testEnvironment": "node",
"transform": {
"^.+\\.(jsx?|tsx?)$": "babel-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"]
}