The good old PhantomJS times are over. The project is not maintained anymore and it is recommended to switch over to Chrome headless. Just run a local Selenium standalone server:
$ java -jar Sites/selenium-server-standalone-3.4.0.jar
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
var webdriverio = require('webdriverio'); | |
var webdriverio = | |
client = webdriverio.remote({ | |
desiredCapabilities: { | |
name : 'Selenium Test Example', | |
build : '1.0', | |
browser_api_name : 'FF35', | |
os_api_name : 'WinXPSP2-C2', |
import fs from 'fs'; | |
import path, { resolve } from 'path'; | |
import assert from 'assert'; | |
import Module from 'module'; | |
import jsdom from 'jsdom'; | |
import Mocha from 'mocha'; | |
import chokidar from 'chokidar'; | |
// Let's import and globalize testing tools so | |
// there's no need to require them in each test |
import React, { Component, PropTypes } from 'react'; | |
import PopperJS from 'popper.js'; | |
export default class Popper extends Component { | |
state = {} | |
update = () => { | |
if (this.popperInstance) { | |
this.popperInstance.scheduleUpdate(); | |
} |
Should there be a need to fetch web platform data in NodeJS, here are some dependency-less functions that will return feature data from W3C, CanIUse, and MDN Browser Compatibility Data.
NodeJS includes an http
and https
library which can perform network requests.
const https = require('https')
⚠️ Warning: this document is out of date.For the most recent webpack5 instructions see MIGRATION.md.
Storybook 6.2 includes experimental Webpack 5 support. Webpack 5 brings a variety of performance improvements, as well as exciting new features like module federation. Here's a quick guide to get you going.