Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade dev deps #166

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ matrix:
include:
- node_js: 14
- node_js: 12
# - node_js: 12
# env: KARMA=true
fast_finish: true
env:
global:
Expand Down
42 changes: 17 additions & 25 deletions gulp-tasks/test.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
import gulp from 'gulp';
import {Server as KarmaServer} from 'karma';
import gulp from "gulp";

import {coverage} from './coverage';
import mochaGlobals from '../test/setup/.globals.json';
import { coverage } from "./coverage";
import mochaGlobals from "../test/setup/.globals.json";

export function mocha() {
const $ = global.$;

require('@babel/register');
return gulp.src(['test/setup/node.js', 'test/**/*.spec.js', 'src/**/*.spec.js'], {read: false})
.pipe($.mocha({
reporter: 'spec',
globals: Object.keys(mochaGlobals.globals),
ignoreLeaks: false
}));
require("@babel/register");
return gulp
.src(["test/setup/node.js", "test/**/*.spec.js", "src/**/*.spec.js"], {
read: false,
})
.pipe(
$.mocha({
reporter: "spec",
globals: Object.keys(mochaGlobals.globals),
ignoreLeaks: false,
})
);
}

function karma(done) {
new KarmaServer({
configFile: __dirname + '/../karma.conf.js',
singleRun: true
}, done).start();
};

function test(done) {
if (process.env.KARMA) {
karma(done);
} else {
coverage(done);
}
coverage(done);
}

// Lint and run our tests
gulp.task('test', gulp.series('lint', test));
gulp.task('test-browser', gulp.series('lint', karma));
gulp.task("test", gulp.series("lint", test));
Loading
Loading