Skip to content

Instantly share code, notes, and snippets.

View CompuIves's full-sized avatar

Ives van Hoorne CompuIves

View GitHub Profile
import babelTranspiler from '../../transpilers/babel';
import jsonTranspiler from '../../transpilers/json';
import stylesTranspiler from '../../transpilers/css';
import sassTranspiler from '../../transpilers/sass';
import rawTranspiler from '../../transpilers/raw';
import stylusTranspiler from '../../transpilers/stylus';
import lessTranspiler from '../../transpilers/less';
import asyncTranspiler from './transpilers/async';
{
"name": "dll_bundle",
"content": {
"./node_modules/fbjs/lib/emptyFunction.js": 0,
"./node_modules/fbjs/lib/invariant.js": 1,
"./node_modules/fbjs/lib/warning.js": 2,
"./node_modules/react": 3,
"./node_modules/fbjs/lib/emptyObject.js": 4,
"./node_modules/object-assign/index.js": 5,
"./node_modules/prop-types/checkPropTypes.js": 6,
{
"aliases": {
"asap": "asap/browser-asap.js",
"asap/asap": "asap/browser-asap.js",
"asap/asap.js": "asap/browser-asap.js",
"asap/raw": "asap/browser-raw.js",
"asap/raw.js": "asap/browser-raw.js",
"asap/test/domain.js": "asap/test/browser-domain.js",
"core-js": "core-js/index.js",
"encoding": "encoding/lib/encoding.js",
const SANDBOXES = [
'new',
'preact',
'vue',
'svelte',
'react-ts',
{ id: 'github/reactjs/redux/tree/master/examples/todomvc', threshold: 0.04 },
{ id: 'jvlrl98xw3', threshold: 0.05 },
// And moooore sandboxes
];
const SANDBOXES = [];
describe('sandboxes', () => {
SANDBOXES.forEach(sandbox => {
const id = sandbox.id || sandbox;
const threshold = sandbox.threshold || 0.01;
it(
`loads the sandbox with id '${id}'`,
async () => {
import puppeteer from 'puppeteer';
const SANDBOXES = [
/* ids */
];
function pageLoaded(page) {
return new Promise(async resolve => {
// We expose a function which the bundler will call after evaluation
await page.exposeFunction('__puppeteer__', () => {
{
"regenerator-runtime": {
"semver": "^0.12.0",
"resolved": "0.12.1",
"parents": [
"@babel/runtime"
],
"entries": []
},
"assert": {
#!/bin/bash
docker run --rm --name test-container -v $(pwd):/home/circleci/codesandbox-client -w /home/circleci/codesandbox-client -d -t codesandbox/node-puppeteer yarn start:test && \
sleep 6 && docker exec -it test-container yarn test:integrations && \
docker stop test-container
const puppeteer = require('puppeteer');
let browser = puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});
async function test(url) {
browser = await browser;
const page = await browser.newPage();
const a = Date.now();
await page.goto(url, {
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'net/http'
require 'uri'
require 'json'
uri = URI.parse("https://zaczhdbo7s-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20JavaScript%20(3.33.0)%3B%20Browser%20(lite)%3B%20react%20(16.9.0)%3B%20react-instantsearch%20(5.7.0)%3B%20JS%20Helper%202.26.1&x-algolia-application-id=ZACZHDBO7S&x-algolia-api-key=7675b9e87ed7dd5bbf18f3e5310f92d6")
request = Net::HTTP::Post.new(uri)
request.content_type = "application/x-www-form-urlencoded"