Skip to content

Instantly share code, notes, and snippets.

View lgandecki's full-sized avatar

Łukasz Gandecki lgandecki

View GitHub Profile
const path = require('path');
module.exports = function (wallaby) {
return {
files: [
{pattern: 'node_modules/babel-polyfill/dist/polyfill.js', instrument: false},
'public/data.json',
'js/**/*.js'
],
tests: [
const path = require('path');
module.exports = function (wallaby) {
return {
files: ['src/*.js'],
tests: ['src/tests/*.test.js'],
env: {
type: 'node',
{
"README_schema" : "Specifies how to load the GraphQL schema that completion, error highlighting, and documentation is based on in the IDE",
"schema": {
"request": {
"url" : "http://localhost:3000/graphql",
"method" : "POST",
"README_postIntrospectionQuery" : "Whether to POST an introspectionQuery to the url. If the url always returns the schema JSON, set to false and consider using GET",
"postIntrospectionQuery" : true,
"README_options" : "See the 'Options' section at https://github.com/then/then-request",
// XXX need a strategy for passing the binding of $ into this
// function, from the compiled selector
//
// maybe just {key.up.to.just.before.dollarsign: array_index}
//
// XXX atomicity: if one modification fails, do we roll back the whole
// change?
//
// options:
// - isInsert is set when _modify is being called to compute the document to
`"code": "test_code"`
or '"code": "test_code"'
instead of
"\"code\": \"test_code\""
> browser.element("input").then(function(e) { console.log("my e", e) })
my e { sessionId: '8e489f2907be6c86c9a894f014d3f382',
status: 0,
value:
{ ELEMENT: '0.15292583427943218-1',
'element-6066-11e4-a52e-4f735466cecf': '0.15292583427943218-1' },
selector: 'input' }
> browser.element("input").then(function(e) { e.click() })
@lgandecki
lgandecki / index.js
Created September 20, 2017 07:36
remove importing html plugin
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (_ref) {
var t = _ref.types;
return {
class MyWsServer {
initialHooks = {};
hooks = {};
on(eventType, cb) {
this.initialHooks[eventType] = cb;
}
receiveConnection(client) {