From 15c87a95e7d26d02fdc7308f35909e9d1e810b69 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Sun, 19 Jan 2020 15:26:03 +0000 Subject: [PATCH] chore(package): update ava to version 3.1.0 --- package.json | 5 +---- test/helpers/karma.js | 10 ++++++---- test/plugin.test.js | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c35ef4e..26cdc5c 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,6 @@ "version": "0.0.0-development", "author": "Pierre Vanduynslager (https://github.com/pvdlg)", "ava": { - "helpers": [ - "test/helpers/**/*" - ], "files": [ "test/*.test.js" ] @@ -17,7 +14,7 @@ "devDependencies": { "@babel/core": "^7.0.0", "@babel/preset-env": "^7.0.0", - "ava": "^2.4.0", + "ava": "^3.1.0", "codecov": "^3.0.0", "conventional-changelog-metahub": "^4.0.0", "eslint-plugin-sort-class-members": "^1.2.0", diff --git a/test/helpers/karma.js b/test/helpers/karma.js index 2ede53d..cd01727 100644 --- a/test/helpers/karma.js +++ b/test/helpers/karma.js @@ -1,6 +1,6 @@ -import pEvent from 'p-event'; -import {Server, constants} from 'karma'; -import karmaJasmineJQuery from '../..'; +const pEvent = require('p-event'); +const {Server, constants} = require('karma'); +const karmaJasmineJQuery = require('../..'); /** * Base Karma configuration tu run plugin. @@ -47,7 +47,7 @@ const KARMA_CONFIG = { * @param {string|Array} frameworks Karma frameworks to include in the run. * @return {Promise} A `Promise` that resolve to the Karma execution results. */ -export default async function run(fixtures, frameworks) { +async function run(fixtures, frameworks) { const server = new Server( Object.assign(KARMA_CONFIG, { files: Array.isArray(fixtures) ? fixtures : [fixtures], @@ -73,3 +73,5 @@ export default async function run(fixtures, frameworks) { return {success, failed, error: err, disconnected, exitCode: 1}; } } + +module.exports = run; diff --git a/test/plugin.test.js b/test/plugin.test.js index a67234a..60a978f 100644 --- a/test/plugin.test.js +++ b/test/plugin.test.js @@ -1,5 +1,5 @@ -import test from 'ava'; -import run from './helpers/karma'; +const test = require('ava'); +const run = require('./helpers/karma'); test('Jasmine-JQuery should be loaded', async t => { const fixture = 'test/fixtures/jasmine-jquery.test.js';