Skip to content

Instantly share code, notes, and snippets.

View doque's full-sized avatar

Dom Busser doque

  • Munich, Germany
  • 02:42 (UTC +01:00)
View GitHub Profile
console.log('cookie', document.cookie)
console.log('localStorage, window.localStorage)
it('shows an error message when the auth service responds with 422', () => {
cy.server();
cy.route({
method: 'POST',
url: '**/auth/forgotPassword/change',
// url: 'https://auth.foo.com/auth/forgotPassword/change',
status: 422,
delay: 3000,
}).as('resetPassword');
cy.visit('/');
Verbose logs are written to:
/var/folders/jt/dswk9mzj5_bd5b1t764bv0mm0000gn/T/vscode-chrome-debug.txt
OS: darwin x64
Adapter node: v7.9.0 x64
vscode-chrome-debug-core: 3.18.4
15:45:56, 2017-11-10
debugger-for-chrome: 3.5.0
From client: initialize({"clientID":"vscode","adapterID":"chrome","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-gb"})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"exceptionBreakpointFilters":[{"label":"All Exceptions","filter":"all","default":false},{"label":"Uncaught Exceptions","filter":"uncaught","default":true}],"supportsConfigurationDoneRequest":true,"supportsSetVariable":true,"supportsConditionalBreakpoints":true,"supportsCompletionsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsRestartFrame":true,"supportsExceptionInfoRequest":true,"supportsDelayedStackTraceLoading":true,"supportsValueForm
×
TypeError: allStylePropTypes[prop] is not a function
Function.validateStyleProp
node_modules/react-native-web/dist/apis/StyleSheet/StyleSheetValidation.js:1
> 1 | Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _ImageStylePropTypes=require('../../components/Image/ImageStylePropTypes');var _ImageStylePropTypes2=_interopRequireDefault(_ImageStylePropTypes);var _TextInputStylePropTypes=require('../../components/TextInput/TextInputStylePropTypes');var _TextInputStylePropTypes2=_interopRequireDefaul
require('babel-register');
const path = require('path');
const cssLoaders = require('../webpack.config.babel.js').cssLoaders;
// Overrides the Storybook Base Webpack Config
module.exports = function (storybookBaseConfig, configType) {
// configType has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.
console.log(`🤖 storybook is building for ${configType}`);
component-library@1.0.0 component-library
├── archy@1.0.0 extraneous
├─┬ babel-core@6.18.2
│ ├─┬ babel-code-frame@6.16.0
│ │ └── js-tokens@2.0.0
│ ├─┬ babel-generator@6.19.0
│ │ ├─┬ detect-indent@4.0.0
│ │ │ └─┬ repeating@2.0.1
│ │ │ └── is-finite@1.0.2
│ │ ├── jsesc@1.3.0
require('babel-register');
require('mock-css-modules');
const jsdom = require('jsdom').jsdom;
// Set up dummy DOM and provide `window` and `document.`
global.document = jsdom('<!doctype html><html><body></body></html>');
global.window = document.defaultView;
const exposedProperties = ['window', 'navigator', 'document'];
Object.keys(document.defaultView).forEach((property) => {
if (typeof global[property] === 'undefined') {
@doque
doque / dependencies
Last active November 20, 2016 16:29
"devDependencies": {
"babel-core": "^6.18.2",
"babel-eslint": "^7.1.1",
"babel-loader": "^6.2.4",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.5.0",
"babel-preset-react-hmre": "^1.1.1",
"babel-runtime": "^6.6.1",

Keybase proof

I hereby claim:

  • I am doque on github.
  • I am doque (https://keybase.io/doque) on keybase.
  • I have a public key whose fingerprint is 4630 BD45 2B0B 4DA3 B9BB 11D8 CF23 3707 A76A B4B3

To claim this, I am signing this object:

dbus@mbp ~/D/es6-karma-jasmine-webpack-boilerplate (master) [1]> npm test
> es6-karma-jasmine-webpack-boilerplate@0.2.0 test /Users/dbus/Desktop/es6-karma-jasmine-webpack-boilerplate
> karma start --single-run --no-auto-watch karma.config.js
Hash: 8344a6c0a9b3c44a5636
Version: webpack 1.12.11
Time: 11ms
webpack: bundle is now VALID.
webpack: bundle is now INVALID.