This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELENIUM_VERSION?=3.5.3 | |
LAUNCH_URL?=https://google.com | |
.PHONY: default | |
default: | |
@$(MAKE) run; OK=$$?; $(MAKE) clean; exit $$OK | |
.PHONY: build-test-image | |
build-test-image: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'sdktor' { | |
declare export type Response<T> = { body: T, status: number }; | |
declare export type AsyncResponse<T> = Promise<Response<T>>; | |
declare type BeforeSend = (reqConfig: {| | |
path: string, | |
params: Object, | |
headers: Object, | |
|}) => {| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const express = require('express'); | |
const proxy = require('http-proxy-middleware'); | |
const app = express(); | |
app.use('/version', proxy({ | |
target: { | |
socketPath: '/var/run/docker.sock', | |
} | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Make views listen and trigger events. | |
We wrap it under `ev` to avoid name conflicts. | |
Eg: | |
myView.ev.trigger('update'); | |
myView.ev.on('update',function(){ | |
console.log('view updated'); | |
}) | |
*/ |