Skip to content

Instantly share code, notes, and snippets.

import React, { Component } from 'react';
import Table from './Table';
import Form from './Form';
class App extends Component {
state = {
characters: []
};
removeCharacter = index => {
import React from 'react';
function Form(props) {
const data = {
name: '',
job: ''
};
const nameRef = React.createRef();
const jobRef = React.createRef();
import React, {Component} from 'react';
class Form extends Component {
constructor(props) {
super(props);
this.initialState = {
name: '',
job: ''
};
const { Helper } = codeceptjs;
class Profiler extends Helper {
// before/after hooks
/**
* @protected
*/
_before() {
// remove if not used
Feature('Add person');
Scenario('add a john doe the janitor to the list', (I) => {
//go to the page that we are testing
I.amOnPage('/');
//start the profiler
//I.startProfiling();
const { setHeadlessWhen } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// HEADLESS=true npx codecept run
setHeadlessWhen(process.env.HEADLESS);
exports.config = {
tests: './*_test.js',
output: './output',
helpers: {
#command line test
command:
#test case 1
java_version:
exec: "java --version"
exit-status: 0
stdout:
- 11.0.7
#test case 2
maven_version:

Keybase proof

I hereby claim:

  • I am nofanto on github.
  • I am nofanto (https://keybase.io/nofanto) on keybase.
  • I have a public key ASD7WnxzPqAf0qv0PRJfKK72WWfx0mq4bG79pp59G3cHMQo

To claim this, I am signing this object: