-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
81 lines (77 loc) · 2.4 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
const {
default: testActiveSpeakerObserver
} = require('@mafalda-sfu/mediasoup-node-tests/ActiveSpeakerObserver')
const {
default: testAudioLevelObserver
} = require('@mafalda-sfu/mediasoup-node-tests/AudioLevelObserver')
const {
default: testConsumer
} = require('@mafalda-sfu/mediasoup-node-tests/Consumer')
const {
default: testDataConsumer
} = require('@mafalda-sfu/mediasoup-node-tests/DataConsumer')
const {
default: testDataProducer
} = require('@mafalda-sfu/mediasoup-node-tests/DataProducer')
const {
default: testDirectTransport
} = require('@mafalda-sfu/mediasoup-node-tests/DirectTransport')
const {
default: testMediasoup
} = require('@mafalda-sfu/mediasoup-node-tests/mediasoup')
const {
default: testMultiopus
} = require('@mafalda-sfu/mediasoup-node-tests/multiopus')
const {
default: testNodeSctp
} = require('@mafalda-sfu/mediasoup-node-tests/node-sctp')
const {
default: testOrtc
} = require('@mafalda-sfu/mediasoup-node-tests/ortc')
const {
default: testPipeTransport
} = require('@mafalda-sfu/mediasoup-node-tests/PipeTransport')
const {
default: testPlainTransport
} = require('@mafalda-sfu/mediasoup-node-tests/PlainTransport')
const {
default: testProducer
} = require('@mafalda-sfu/mediasoup-node-tests/Producer')
const {
default: testRouter
} = require('@mafalda-sfu/mediasoup-node-tests/Router')
const {
default: testWebRtcServer
} = require('@mafalda-sfu/mediasoup-node-tests/WebRtcServer')
const {
default: testWebRtcTransport
} = require('@mafalda-sfu/mediasoup-node-tests/WebRtcTransport')
const {
default: testWorker
} = require('@mafalda-sfu/mediasoup-node-tests/Worker')
module.exports = function(mediasoup)
{
describe('Mediasoup node tests', function()
{
// HACK: Mediasoup tests have the worker binary path hardcoded based on the
// tests directory. We need to override it.
process.env.MEDIASOUP_WORKER_BIN = mediasoup.workerBin
testActiveSpeakerObserver(mediasoup)
testAudioLevelObserver(mediasoup)
testConsumer(mediasoup)
testDataConsumer(mediasoup)
testDataProducer(mediasoup)
testDirectTransport(mediasoup)
testMediasoup(mediasoup)
testMultiopus(mediasoup)
testNodeSctp(mediasoup)
testOrtc(mediasoup)
testPipeTransport(mediasoup)
testPlainTransport(mediasoup)
testProducer(mediasoup)
testRouter(mediasoup)
testWebRtcServer(mediasoup)
testWebRtcTransport(mediasoup)
testWorker(mediasoup)
})
}