Force exiting after tests finish

This commit is contained in:
Paul Kaplan 2018-11-27 16:06:56 -05:00
parent cc4751228e
commit 0c38c3cffe
2 changed files with 10 additions and 2 deletions

View file

@ -1,4 +1,4 @@
const test = require('tap').test;
const tap = require('tap');
const path = require('path');
const readFileToBuffer = require('../fixtures/readProjectFile').readFileToBuffer;
const VirtualMachine = require('../../src/virtual-machine');
@ -6,6 +6,10 @@ const Runtime = require('../../src/engine/runtime');
const MonitorRecord = require('../../src/engine/monitor-record');
const {Map} = require('immutable');
tap.tearDown(() => process.nextTick(process.exit));
const test = tap.test;
test('spec', t => {
const r = new Runtime();

View file

@ -1,4 +1,4 @@
const test = require('tap').test;
const tap = require('tap');
const VirtualMachine = require('../../src/virtual-machine');
const Sprite = require('../../src/sprites/sprite');
const Variable = require('../../src/engine/variable');
@ -8,6 +8,10 @@ const Renderer = require('../fixtures/fake-renderer');
const Runtime = require('../../src/engine/runtime');
const RenderedTarget = require('../../src/sprites/rendered-target');
tap.tearDown(() => process.nextTick(process.exit));
const test = tap.test;
test('deleteSound returns function after deleting or null if nothing was deleted', t => {
const vm = new VirtualMachine();
const sprite = new Sprite();