12345678910111213141516171819202122232425262728293031323334 |
- /*eslint-disable*/
- 'use strict';
- process.env.BABEL_ENV = 'test';
- const babelOptions = require('./package.json').babel.env.test;
- module.exports = function(wallaby) {
- return {
- env: {
- type: 'node',
- runner: 'node'
- },
-
- testFramework: 'jest',
-
- files: [
- 'package.json',
- 'src/**/*.js',
- '!src/**/*.test.js'
- ],
-
- tests: [
- 'src/**/*.test.js'
- ],
-
- compilers: {
- '**/*.js': wallaby.compilers.babel(babelOptions)
- },
-
- setup: function(w) {
- require('babel-polyfill');
- w.testFramework.configure(require('./package.json').jest);
- }
- };
- };
|