Sha256: 3920f7eac7dd4020b6e4cf55d19edf0460def16579f8517dd840decfdfd65793

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

const chai = require('chai')
global.expect = chai.expect
const fs = require('file-system')
const jsdom = require('mocha-jsdom')
const path = require('path')
const babel = require("@babel/core");
const url = "http://localhost"

const html = fs.readFileSync(path.resolve(__dirname, '..', 'index.html'), 'utf-8')

const babelResult = babel.transformFileSync(
  path.resolve(__dirname, '..', 'index.js'), {
    presets: ['@babel/env']
  }
);

const src = babelResult.code

jsdom({
  html, src, url
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
learn_create-0.0.22 lib/templates/javascript_lab_template/test/helpers.js
learn_create-0.0.20 lib/templates/javascript_lab_template/test/helpers.js