mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-10 06:52:00 -05:00
Merge pull request #1768 from cwillisf/node11-fix-unit-tests
Fix unit tests on Travis CI
This commit is contained in:
commit
e071cf3c0c
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- 8
|
||||
- node
|
||||
- 10
|
||||
env:
|
||||
global:
|
||||
- NODE_ENV=production
|
||||
|
|
|
@ -49,7 +49,8 @@ test('local', t => {
|
|||
|
||||
test('remote', t => {
|
||||
const fixturesDir = path.resolve(__dirname, '../fixtures');
|
||||
const worker = new Worker('./test/fixtures/dispatch-test-worker-shim.js', null, {cwd: fixturesDir});
|
||||
const shimPath = path.resolve(fixturesDir, 'dispatch-test-worker-shim.js');
|
||||
const worker = new Worker(shimPath, null, {cwd: fixturesDir});
|
||||
dispatch.addWorker(worker);
|
||||
|
||||
const waitForWorker = new Promise(resolve => {
|
||||
|
|
Loading…
Reference in a new issue