mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-10 15:02:06 -05:00
Force exiting after tests finish
This commit is contained in:
parent
cc4751228e
commit
0c38c3cffe
2 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
const test = require('tap').test;
|
const tap = require('tap');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const readFileToBuffer = require('../fixtures/readProjectFile').readFileToBuffer;
|
const readFileToBuffer = require('../fixtures/readProjectFile').readFileToBuffer;
|
||||||
const VirtualMachine = require('../../src/virtual-machine');
|
const VirtualMachine = require('../../src/virtual-machine');
|
||||||
|
@ -6,6 +6,10 @@ const Runtime = require('../../src/engine/runtime');
|
||||||
const MonitorRecord = require('../../src/engine/monitor-record');
|
const MonitorRecord = require('../../src/engine/monitor-record');
|
||||||
const {Map} = require('immutable');
|
const {Map} = require('immutable');
|
||||||
|
|
||||||
|
tap.tearDown(() => process.nextTick(process.exit));
|
||||||
|
|
||||||
|
const test = tap.test;
|
||||||
|
|
||||||
test('spec', t => {
|
test('spec', t => {
|
||||||
const r = new Runtime();
|
const r = new Runtime();
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const test = require('tap').test;
|
const tap = require('tap');
|
||||||
const VirtualMachine = require('../../src/virtual-machine');
|
const VirtualMachine = require('../../src/virtual-machine');
|
||||||
const Sprite = require('../../src/sprites/sprite');
|
const Sprite = require('../../src/sprites/sprite');
|
||||||
const Variable = require('../../src/engine/variable');
|
const Variable = require('../../src/engine/variable');
|
||||||
|
@ -8,6 +8,10 @@ const Renderer = require('../fixtures/fake-renderer');
|
||||||
const Runtime = require('../../src/engine/runtime');
|
const Runtime = require('../../src/engine/runtime');
|
||||||
const RenderedTarget = require('../../src/sprites/rendered-target');
|
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 => {
|
test('deleteSound returns function after deleting or null if nothing was deleted', t => {
|
||||||
const vm = new VirtualMachine();
|
const vm = new VirtualMachine();
|
||||||
const sprite = new Sprite();
|
const sprite = new Sprite();
|
||||||
|
|
Loading…
Reference in a new issue