diff --git a/package.json b/package.json index f78d2677c..8d6edc3b5 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ "_prepublish": "npm run small-build", "quick-build": "tsc --pretty", "small-build": "scripts/single-file-build.sh", - "test-browser-electron": "npm run small-build && ( browserify test/*.js | tape-run )", - "test-browser-chrome": "npm run small-build && ( browserify test/*.js | tape-run --browser chrome )", - "test-browser-safari": "npm run small-build && ( browserify test/*.js -t [ babelify --presets [ es2015 ] ] | tape-run --browser safari )", - "test-browser-firefox": "npm run small-build && ( browserify test/*.js | tape-run --browser firefox )", + "test-browser-electron": "npm run small-build && ( browserify test/*.js | tape-run | faucet )", + "test-browser-chrome": "npm run small-build && ( browserify test/*.js | tape-run --browser chrome | faucet )", + "test-browser-safari": "npm run small-build && ( browserify test/*.js -t [ babelify --presets [ es2015 ] ] | tape-run --browser safari | faucet )", + "test-browser-firefox": "npm run small-build && ( browserify test/*.js | tape-run --browser firefox | faucet )", "test-travis": "npm run small-build && npm run build-tests && tape test/*.js test/perf/index.js && tsc && istanbul cover tape test/*.js", "coverage": "npm run quick-build && npm run build-tests && istanbul cover tape test/*.js", "build-tests": "npm run build-typescript-tests && npm run build-babel-tests", diff --git a/test/autorunAsync.js b/test/autorunAsync.js index c9cfe87fb..64c63f499 100644 --- a/test/autorunAsync.js +++ b/test/autorunAsync.js @@ -115,15 +115,15 @@ test('autorunAsync passes Reaction as an argument to view function', function(t) if (a.get() === 'pleaseDispose') r.dispose(); }, 10); - setTimeout(() => a.set(2), 25); - setTimeout(() => a.set('pleaseDispose'), 40); - setTimeout(() => a.set(3), 55); - setTimeout(() => a.set(4), 70); + setTimeout(() => a.set(2), 250); + setTimeout(() => a.set('pleaseDispose'), 400); + setTimeout(() => a.set(3), 550); + setTimeout(() => a.set(4), 700); setTimeout(function() { t.equal(autoRunsCalled, 3); t.end(); - }, 100); + }, 1000); }); test('autorunAsync warns when passed an action', function(t) { diff --git a/test/typescript-tests.ts b/test/typescript-tests.ts index a3af69d3e..8e18b305f 100644 --- a/test/typescript-tests.ts +++ b/test/typescript-tests.ts @@ -254,7 +254,7 @@ test('computed setter should succeed', function(t) { test('atom clock example', function(t) { let ticks = 0; - const time_factor = 50; // speed up / slow down tests + const time_factor = 500; // speed up / slow down tests class Clock { atom: Atom;