Skip to content

Instantly share code, notes, and snippets.

View barayuda's full-sized avatar
🌎
Hi there 👋

Barayuda barayuda

🌎
Hi there 👋
View GitHub Profile
@barayuda
barayuda / 0_reuse_code.js
Created July 20, 2017 05:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@barayuda
barayuda / package.json
Last active December 21, 2020 04:31
E2E Testing
{
...,
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.10.5",
...,
},
"optionalDependencies": {
"macaca-cli": "^2.2.1",
@barayuda
barayuda / package.json
Created December 20, 2020 08:54
E2E Testing
{
...,
"scripts": {
...
"dev:test": "cross-env NODE_ENV=test npm run dev",
"test": "npm run clean && macaca run --f_options '--opts test/mocha.opts' -d ./test --verbose",
"clean": "rm -rf coverage reports",
},
...,
}
@barayuda
barayuda / mocha.opts
Created December 20, 2020 08:58
E2E Testing config
--reporter macaca-reporter
--require @babel/register
--recursive
--timeout 60000
@barayuda
barayuda / simple.test.js
Last active January 7, 2021 05:26
E2E Testing Simple Script
/**
* File: simple.test.js
* Author: barayuda.gautama[at]dana.id || gede[at]barayuda.web.id
*/
'use strict';
import {
webpackHelper
} from 'macaca-wd';
@barayuda
barayuda / install-zsh-windows-git-bash.md
Created October 1, 2022 17:01 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash