- In index.js/server.js add an end point for graphql
const graphqlHTTP = require('express-graphql');
const schema = require('./schema/schema');
{ | |
"quokka": { | |
"babel": { | |
"presets": ["react-app"] | |
}, | |
"plugins": [ | |
"jsdom-quokka-plugin" | |
] | |
} | |
} |
FROM drupal:8.5 | |
RUN apt-get update && apt-get install -y git \ | |
&& rm -rf /var/lib/apt/lists/* | |
# this next part was corrected in 2018 to be more clear on how you'd typically | |
# customize your own theme. first you need to clone the theme into this repo | |
# with something like downloading the lastest theme for bootstrap | |
# https://www.drupal.org/project/bootstrap and extract into themes dir on host. |
module.exports = { | |
"env": { | |
"mocha": true | |
}, | |
"extends":[ | |
"airbnb-base", | |
"prettier" | |
], | |
"plugins": [ |
const puppeteer = require('puppeteer'); | |
/************************************************** | |
SETUP CLASS USING PROXYS FOR PUPPETEER | |
***************************************************/ | |
class CustomPage { |
/*=========================================== | |
assertion function | |
=============================================*/ | |
function test(str, bool) { | |
console.log( | |
bool ? '\x1b[32m' : '\x1b[31m', | |
bool ? '[PASS]' : ' [FAIL]', | |
str | |
) | |
} |