Skip to content

Commit

Permalink
test: run tests on webkit for webRTC
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Jun 16, 2023
1 parent 3dfc236 commit 92c198e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
40 changes: 21 additions & 19 deletions packages/transport-webrtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,55 +38,57 @@
"test": "aegir test -t browser",
"test:chrome": "aegir test -t browser --cov",
"test:firefox": "aegir test -t browser -- --browser firefox",
"test:webkit": "aegir test -t browser -- --browser webkit",
"lint": "aegir lint",
"lint:fix": "aegir lint --fix",
"clean": "aegir clean",
"dep-check": "aegir dep-check -i protons"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^12.0.1",
"@libp2p/interface-connection": "^5.0.0",
"@libp2p/interface-metrics": "^4.0.0",
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interface-registrar": "^2.0.0",
"@libp2p/interface-stream-muxer": "^4.0.0",
"@libp2p/interface-transport": "^4.0.0",
"@libp2p/interfaces": "^3.0.0",
"@libp2p/logger": "^2.0.0",
"@libp2p/peer-id": "^2.0.0",
"@multiformats/mafmt": "^12.1.2",
"@libp2p/interface-connection": "^5.1.1",
"@libp2p/interface-metrics": "^4.0.8",
"@libp2p/interface-peer-id": "^2.0.2",
"@libp2p/interface-registrar": "^2.0.12",
"@libp2p/interface-stream-muxer": "^4.1.2",
"@libp2p/interface-transport": "^4.0.3",
"@libp2p/interfaces": "^3.3.2",
"@libp2p/logger": "^2.1.1",
"@libp2p/peer-id": "^2.0.4",
"@multiformats/mafmt": "^12.1.5",
"@multiformats/multiaddr": "^12.1.3",
"abortable-iterator": "^5.0.1",
"detect-browser": "^5.3.0",
"it-all": "^3.0.2",
"it-length-prefixed": "^9.0.1",
"it-pb-stream": "^4.0.1",
"it-pipe": "^3.0.1",
"it-pushable": "^3.1.3",
"it-stream-types": "^2.0.1",
"it-to-buffer": "^4.0.2",
"multiformats": "^11.0.2",
"multiformats": "^12.0.1",
"multihashes": "^4.0.3",
"p-defer": "^4.0.0",
"p-event": "^6.0.0",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@chainsafe/libp2p-yamux": "^4.0.1",
"@libp2p/interface-libp2p": "^3.0.0",
"@libp2p/interface-mocks": "^12.0.0",
"@libp2p/peer-id-factory": "^2.0.0",
"@libp2p/websockets": "^6.0.0",
"@chainsafe/libp2p-yamux": "^4.0.2",
"@libp2p/interface-libp2p": "^3.2.0",
"@libp2p/interface-mocks": "^12.0.1",
"@libp2p/peer-id-factory": "^2.0.4",
"@libp2p/websockets": "^6.0.3",
"@types/sinon": "^10.0.15",
"aegir": "^39.0.10",
"delay": "^6.0.0",
"it-length": "^3.0.2",
"it-map": "^3.0.3",
"it-pair": "^2.0.6",
"libp2p": "^0.45.0",
"libp2p": "^0.45.9",
"protons": "^7.0.2",
"sinon": "^15.1.0",
"sinon": "^15.1.2",
"sinon-ts": "^1.0.0"
},
"typedoc": {
Expand Down
9 changes: 0 additions & 9 deletions packages/transport-webrtc/test/basics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ describe('basics', () => {
remoteNode = await createNode()
})

afterEach(async () => {
if (localNode != null) {
await localNode.stop()
}

if (remoteNode != null) {
await remoteNode.stop()
}
})

it('can dial through a relay', async () => {
const connection = await connectNodes()
Expand Down

0 comments on commit 92c198e

Please sign in to comment.