Set up project:
mkdir project
cd project
npm init -y
import { types } from 'mobx-state-tree' | |
import { getModelType, getModelTypes } from './get-model-type' | |
const TestModel = types.model('models', { | |
id: types.identifier, | |
name: types.literal('frodo'), | |
}) | |
const TestModel2 = types.model('other-models', { | |
id: types.identifier, |
ishabbi@Ishs-MacBook-Pro:~$ java -jar selenium-4alpha-custom.jar hub | |
09:51:23.063 INFO [EventBusConfig.createBus] - Creating event bus: org.openqa.selenium.events.zeromq.ZeroMqEventBus | |
09:51:23.149 INFO [BoundZmqEventBus.<init>] - XPUB binding to [binding to tcp://*:4442, advertising as tcp://fe80:0:0:0:841:a6e6:c8bc:4133%en0:4442], XSUB binding to [binding to tcp://*:4443, advertising as tcp://fe80:0:0:0:841:a6e6:c8bc:4133%en0:4443] | |
09:51:23.224 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://fe80:0:0:0:841:a6e6:c8bc:4133%en0:4442 and tcp://fe80:0:0:0:841:a6e6:c8bc:4133%en0:4443 | |
Exception in thread "main" java.lang.IllegalArgumentException: Unable to find event bus class: org.openqa.selenium.events.zeromq.ZeroMqEventBus | |
at org.openqa.selenium.grid.server.EventBusConfig.createBus(EventBusConfig.java:74) | |
at org.openqa.selenium.grid.server.EventBusConfig.getEventBus(EventBusConfig.java:44) | |
at org.openqa.selenium.grid.commands.Hub.lambda$configure$0(Hub.java:107) | |
at org.openqa.selenium.grid.Main.launc |
Some Jenkinsfile examples |
import { createLogger } from 'redux-logger'; | |
const logger = createLogger({ | |
stateTransformer: (state) => { | |
const newState = {}; | |
const stateObj = state.toObject(); | |
for (const i of Object.keys(stateObj)) { | |
if (Iterable.isIterable(stateObj[i])) { | |
newState[i] = stateObj[i].toJS(); |
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
sourceCompatibility = JavaVersion.VERSION_1_8 | |
targetCompatibility = JavaVersion.VERSION_1_8 | |
eclipseJdt << { | |
ant.propertyfile(file: ".settings/org.eclipse.core.resources.prefs") { | |
ant.entry(key: "eclipse.preferences.version", value: "1") | |
ant.entry(key: "encoding/<project>", value: "utf-8") |
var expect = require('expect'); | |
describe.only('Sample', function () { | |
beforeEach(function () { | |
this.currentTest.value = 'Winning!'; | |
}); | |
it('Uses current test data', function () { | |
expect(this.test.value).to.equal('Winning!'); |